Include the TinyMCE editor in a form
Docly has the TinyMCE rich text editor built in. Give a textarea in your schema the class "tinymce" and Docly turns it into a rich text editor — no scripts to add.
Read more about the TinyMCE editor at tinymce.com.
Create a textarea field in your markup
Enter your text:<br />
<textarea class="tinymce form-control" name="Textfield"></textarea>Set up as many fields as you like. Each textarea with the class "tinymce" becomes a rich text editor when the document is opened.
Save the schema — that is all
Docly loads its own copy of TinyMCE (version 6) the first time a form with a .tinymce field is opened. Nothing is loaded from an external CDN, so it also works in schemas marked "Secure form", whose Content-Security-Policy blocks external scripts.
Older versions of this guide added JavaScript that loaded TinyMCE 4.3.12 from cdnjs (loadScript, AttachEditors and code in "Global JS declarations"). That version is no longer supported, and the script is blocked in Secure forms. If a schema still has that code, remove it — the built-in editor takes over.