[pLog-svn] r1225 - plog/trunk/js/htmlarea

mark at devel.plogworld.net mark at devel.plogworld.net
Sun Feb 27 15:42:46 GMT 2005


Author: mark
Date: 2005-02-27 15:42:46 +0000 (Sun, 27 Feb 2005)
New Revision: 1225

Modified:
   plog/trunk/js/htmlarea/htmlarea-plog.js
   plog/trunk/js/htmlarea/htmlarea.js
Log:
Remove "lose focus" patch to fix insertlink and insertimage fail.

Remove "EnterParagraphs" plugins. Becasue It "<br/> and <p>" issue already fix in 3.0 RC1.

Modified: plog/trunk/js/htmlarea/htmlarea-plog.js
===================================================================
--- plog/trunk/js/htmlarea/htmlarea-plog.js	2005-02-27 15:19:56 UTC (rev 1224)
+++ plog/trunk/js/htmlarea/htmlarea-plog.js	2005-02-27 15:42:46 UTC (rev 1225)
@@ -10,7 +10,7 @@
 };
 
 // load the plugins that we will use
-HTMLArea.loadPlugin("EnterParagraphs");
+// HTMLArea.loadPlugin("EnterParagraphs");
 
 var postTextEditor = null;
 var postExtendedTextEditor = null;
@@ -41,7 +41,7 @@
     ];    
     
     // Config postText Plugins
-    postTextEditor.registerPlugin(EnterParagraphs);
+    // postTextEditor.registerPlugin(EnterParagraphs);
 
     // Generate postText Editor
     setTimeout(function() {postTextEditor.generate();}, 1000); 
@@ -69,7 +69,7 @@
     ];    
     
     // Config postText Plugins    
-    postExtendedTextEditor.registerPlugin(EnterParagraphs);
+    // postExtendedTextEditor.registerPlugin(EnterParagraphs);
 
     // Generate postExtendedText Editor
     setTimeout(function() {postExtendedTextEditor.generate();}, 1000); 

Modified: plog/trunk/js/htmlarea/htmlarea.js
===================================================================
--- plog/trunk/js/htmlarea/htmlarea.js	2005-02-27 15:19:56 UTC (rev 1224)
+++ plog/trunk/js/htmlarea/htmlarea.js	2005-02-27 15:42:46 UTC (rev 1225)
@@ -854,26 +854,27 @@
         // Purpose: Fix lose focus error in Gecko-Based Browser
         // Come From: http://www.htmlarea.com/forum/htmlArea_3_(beta)_C4/htmlArea_v3.0_-_Discussion_F14/gforum.cgi?post=24459
         // Drawback: Need to click twice, first time for focus on frame, second time for set the position of cursor
+        //           Also cause insertimage and insertlink fail
         // -------------------------------------------------------------
 
-        if (HTMLArea.is_gecko) {
-            // If we have multiple editors some bug in Mozilla makes some lose editing ability
-            HTMLArea._addEvents(
-                editor._iframe.contentWindow,
-                ["click"],
-                function(event) {if(doc.designMode !== 'on') { if(HTMLArea.last_on) HTMLArea.last_on.designMode = 'off'; doc.designMode = 'on'; } HTMLArea.last_on = doc;}
-            );
-            HTMLArea._addEvents(
-                editor._iframe.contentWindow,
-                ["blur"],
-                function(event) {if(doc.designMode !== 'on') { if(HTMLArea.last_on) HTMLArea.last_on.designMode = 'off'; } doc.designMode = 'off'; HTMLArea.last_on = null;}
-            );
-        }
+        // if (HTMLArea.is_gecko) {
+        //     // If we have multiple editors some bug in Mozilla makes some lose editing ability
+        //     HTMLArea._addEvents(
+        //         editor._iframe.contentWindow,
+        //         ["click"],
+        //         function(event) {if(doc.designMode !== 'on') { if(HTMLArea.last_on) HTMLArea.last_on.designMode = 'off'; doc.designMode = 'on'; } HTMLArea.last_on = doc;}
+        //     );
+        //     HTMLArea._addEvents(
+        //         editor._iframe.contentWindow,
+        //         ["blur"],
+        //         function(event) {if(doc.designMode !== 'on') { if(HTMLArea.last_on) HTMLArea.last_on.designMode = 'off'; } doc.designMode = 'off'; HTMLArea.last_on = null;}
+        //     );
+        // }
 		
-		// if (HTMLArea.is_gecko) {
-		//     // enable editable mode for Mozilla
-		//     doc.designMode = "on";
-		// }
+		if (HTMLArea.is_gecko) {
+		    // enable editable mode for Mozilla
+		    doc.designMode = "on";
+		}
 
         // -------------------------------------------------------------		
 		




More information about the pLog-svn mailing list