set_editor
Writes text or HTML into rich-text editor bodies so forms submit the visible content, not the hidden textarea. Use for CKEditor, TinyMCE, or contenteditable fields.
Instructions
Write into a rich-text editor — the body a form actually posts.
For CKEditor, TinyMCE and similar the visible editor is an iframe
whose body is editable, and the <textarea> the form submits is hidden
and empty: type_text on that textarea does nothing. Leave selector
empty to use the first editor on the page, or pass the editor's own
iframe or [contenteditable] element.
html=true writes markup (links, paragraphs, images) and syncs the
editor's own data when it is a CKEditor instance; otherwise the text is
written verbatim. Set submits=true if the write sends the form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | ||
| reason | No | ||
| confirm | No | ||
| content | Yes | ||
| submits | No | ||
| selector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||