diff --git a/plugins/tinymce.php b/plugins/tinymce.php index 3c3af090..5c4d32bc 100644 --- a/plugins/tinymce.php +++ b/plugins/tinymce.php @@ -31,17 +31,9 @@ class AdminerTinymce { ?> > tinyMCE.init({ - mode: 'none', - theme: 'advanced', - plugins: 'contextmenu,paste,table', entity_encoding: 'raw', - theme_advanced_buttons1: 'bold,italic,link,unlink,|,sub,sup,|,bullist,numlist,|,cleanup,code', - theme_advanced_buttons2: 'tablecontrols', - theme_advanced_buttons3: '', - theme_advanced_toolbar_location: 'top', - theme_advanced_toolbar_align: 'left', language: '' -}); +}); // learn how to customize here: https://www.tinymce.com/docs/configure/ " . h($value) . "" . script(" tinyMCE.remove(tinyMCE.get('fields-" . js_escape($field["field"]) . "') || { }); -tinyMCE.execCommand('mceAddControl', true, 'fields-" . js_escape($field["field"]) . "'); +tinyMCE.EditorManager.execCommand('mceAddControl', true, 'fields-" . js_escape($field["field"]) . "'); qs('#form').onsubmit = function () { tinyMCE.each(tinyMCE.editors, function (ed) { ed.remove();