TinyMCE — Get, Set, Readonly
Programmatically set content and toggle readonly mode.
Last getContent()
(none yet)
Important JavaScript
editor.setContent("<p>Template text</p>");
const html = editor.getContent();
editor.mode.set("readonly");
editor.mode.set("design");