diff options
Diffstat (limited to 'mod/tinymce/views/default/tinymce/embed_custom_insert_js.php')
-rw-r--r-- | mod/tinymce/views/default/tinymce/embed_custom_insert_js.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/tinymce/views/default/tinymce/embed_custom_insert_js.php b/mod/tinymce/views/default/tinymce/embed_custom_insert_js.php new file mode 100644 index 000000000..84f98c405 --- /dev/null +++ b/mod/tinymce/views/default/tinymce/embed_custom_insert_js.php @@ -0,0 +1,8 @@ + if (window.tinyMCE) { + var editor = window.tinyMCE.get(textAreaName); + + if (editor) { + editor.execCommand("mceInsertContent", true, content); + } + } +
\ No newline at end of file |