I'd like to know the best way to replace a standard textarea field with a rich text editor in Flask Admin? How about kindeditor? And how to make it ?
Here is how you can do it: https://gist.github.com/mrjoes/5189850
Even though this example shows how to integrate CKEditor, process won't be very different for another WYSIWYG editor:
- Create wtforms widget which will emit necessary HTML for the editor. For CKEditor it is 'ckeditor' class;
- Create wtforms field which uses this widget
- Create new template which will include editor JS file(s)
- Tell Flask-Admin to use new field and template.