03 Dec 2008
23 Jul 2012
Link to this post
I'd disagree...a popular KB article and post on the forums for 3 was wrapping the content block in a div. One of my most downloaded 3.x controls was a control based on that article too.
It has HUGE benefit of being able to style only the content block content. So like for example you can style only ".sfContentBlock table" so you can style ONLY a table the user creates. The alternative is what...how would you ever say that only a table the user creates gets X style. You have no concept of user-added content at that point. Sure you can restrict the styling to a wrapper class, but then you're back to "fixing" the tables for all the controls that render as a table. Like you wouldnt want to GLOBALLY style a table as that hoses RadGrids, Kendo Grids, etc. Hell even the old-ass RadWindow still renders as a table.
However if you're dead-set on it, you can re-map the view on the control and just remove it :) ...
Using jQuery you're actually adding to page load time having to remove each element that way, that's not at all a good solution btw....try mapping a view.