[pLog-svn] r5120 - plog/branches/lifetype-1.2/js/tinymce/plugins/more

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Mar 17 09:58:58 EDT 2007


Author: jondaley
Date: 2007-03-17 09:58:58 -0400 (Sat, 17 Mar 2007)
New Revision: 5120

Modified:
   plog/branches/lifetype-1.2/js/tinymce/plugins/more/editor_plugin.js
Log:
the cursor still jumps to the top of the window after insertion (or removal), but now the more link is put at the current cursor location.  I can't figure out tinymce enough to save the cursor location and restore it after the more content has been inserted

Modified: plog/branches/lifetype-1.2/js/tinymce/plugins/more/editor_plugin.js
===================================================================
--- plog/branches/lifetype-1.2/js/tinymce/plugins/more/editor_plugin.js	2007-03-17 13:36:12 UTC (rev 5119)
+++ plog/branches/lifetype-1.2/js/tinymce/plugins/more/editor_plugin.js	2007-03-17 13:58:58 UTC (rev 5120)
@@ -40,7 +40,7 @@
         var whiteSpaceRegExp = new RegExp('^[ \n\r\t]+', 'g');
 
         if (attribute_string == null || attribute_string.length < 2)
-		return null;
+            return null;
 
         withInName = withInValue = false;
 
@@ -113,7 +113,7 @@
                      + 'alt="'+altMore+'" title="'+altMore+'" '
                      + 'class="mce_plugin_more_more" '
                      + 'name="mce_plugin_more_more" />';
-              tinyMCE.execCommand("mceInsertContent", true, html);
+              tinyMCE.execCommand("mceInsertRawHTML", false, html);
               tinyMCE.switchClass(editor_id + '_more', 
                                   'mceButtonSelected');
            }



More information about the pLog-svn mailing list