The Rich Text widget is probably the most powerful and most used widget of all of them. The fact that it will clean up bad code is a great idea, I just don’t understand why it cleans up “valid” code. I can understand that a “Rich Text” widget is for just that – rich text, and an HTML widget is for html, but if that is the case then it should be stated that the rich text editor only supports very basic html. There should be a configuration file or preference that can be set to allow or disallow certain code.
Our sites use HTML5 and the Bootstrap framework extensively, the rich text editor strips a lot of it right out. I want to use Bootstrap markup and enhanced functionality like onClick in the rich text widget. Even with the recent enhancements to the HTML widget, they are not as easy for end-users to manipulate. I don’t mind that the rich text editor removes invalid code, but onclick, html5, and bootstrap markup can be valid.
I think the solution should be a preference to turn the auto-correction on or off. If that’s not possible, perhaps we can get a “Pro” version of the Rich Text editor that allows everything, and hey, if you enter invalid markup, then that’s your own fault. Or as Nathaniel suggested implement the use of the “preserve” tag.