title: Flask-Admin: Adding a WYSIWYG editor to an inline model?
body: <p>Pretty much as the subject has it: I have a Flask-Admin site, and would like to add TinyMCE or CKEditor to a textarea in an inline model.</p>
  <p>There are various instructions for adding CKEditor to Flask-Admin in general, e.g. <a href="https://gist.github.com/mrjoes/5189850" rel="nofollow noreferrer">Flask-Admin and CKEditor WYSIWYG textarea integration</a> and <a href="https://stackoverflow.com/questions/34971368/getting-ckeditor-to-work-with-flask-admin">Getting CKEditor to work with Flask-Admin</a>. I've followed these to create the WTForms widget and field. The inline models don't use edit.html, for pulling in the JS, but I can add it to the master template, though this is not ideal.</p>
  <p>But the main issue is how to attach the WTForms field to the Flask-Admin model. The existing instructions have you set a <code>form_overrides = dict(fieldname=CKTextAreaField)</code>. But that doesn't work inside <code>inline_models</code>. How do I accomplish this?</p>