Render richtext as div reformSome richtext editors, such as TinyMCE in inline mode, do not expectto enhance a textarea, but a div.We could already override the rendering in the richtext editorsubclass, but this has the consequence that inheritance would beinterrupted. This prevents from plugging behavior in subclasses of therichtext formfield.This reform refactors render_richtext_as_div from the richtextformfield into render_as_div on the textarea class. It also supports aflag for subclasses to instruct the superclass that they should renderthe field as div AFTER the whole inheritance chain was applied.
Show less