A few minor BlogEngine.NET TextBox widget improvements

I really like the ability to use multiple widget zones, it’s a great feature that offers a lot of flexibility WRT theming. There is one drawback which is BE makes some assumptions and places hardcoded markup in the TextBox widget which is not desired. I’d like to see two minor changes along these lines which I think would help improve the usability. First, WidgetBase.cs has an assumption that if the title of the widget is not displayed a gets inserted which IMO is not desired. Second, the $g(tinyMCE) editor used by the TextBox widget wraps all content in <p> tags which is also not desired IMO. I like to use the TextBox widget to place any markup on my theme including <script> blocks therefore in WidgetBase.cs I’d like to see the following change:

if (ShowTitle)
  sb.Append("<h4>" + Title + "</h4>");
else
  sb.Append("<br />");

to…

if (ShowTitle)
  sb.Append("<h4>" + Title + "</h4>");

And in Widgets\TextBox\edit.ascx add the option for TinyMCE for:

forced_root_block: false

I’ve already made these changes for my blog which makes the TextBox widget much more useful. I now have an editable sidebar, banner region, page footer and footer script block.

If you’d like to join a conversation on the topic I’ve posted this to CodePlex.