]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Embed's elggEmbedInsertContent() now supports multiple losely coupled views to handle...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 30 Jun 2010 17:56:36 +0000 (17:56 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 30 Jun 2010 17:56:36 +0000 (17:56 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6596 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/tinymce/views/default/embed/addcontentjs.php [deleted file]
mod/tinymce/views/default/tinymce/embed_custom_insert_js.php [new file with mode: 0644]

diff --git a/mod/tinymce/views/default/embed/addcontentjs.php b/mod/tinymce/views/default/embed/addcontentjs.php
deleted file mode 100644 (file)
index 90ff6a3..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-
-       if(window.tinyMCE)
-               window.tinyMCE.execCommand("mceInsertContent",true,content);
-       
\ No newline at end of file
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 (file)
index 0000000..84f98c4
--- /dev/null
@@ -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