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

mark at devel.plogworld.net mark at devel.plogworld.net
Mon Feb 7 04:59:26 GMT 2005


Author: mark
Date: 2005-02-07 04:59:26 +0000 (Mon, 07 Feb 2005)
New Revision: 981

Modified:
   plog/trunk/js/htmlarea/htmlarea-plog.js
   plog/trunk/js/htmlarea/htmlarea.js
Log:
Fix HTMLArea Undo/Redo issue. HTMLArea 3.0 is really a buggy wysiwyg HTML editor.

Modified: plog/trunk/js/htmlarea/htmlarea-plog.js
===================================================================
--- plog/trunk/js/htmlarea/htmlarea-plog.js	2005-02-06 21:05:08 UTC (rev 980)
+++ plog/trunk/js/htmlarea/htmlarea-plog.js	2005-02-07 04:59:26 UTC (rev 981)
@@ -42,19 +42,14 @@
     postTextEditor.registerPlugin(EnterParagraphs);
 
     // Generate postText Editor
-    setTimeout(function() {
-        postTextEditor.generate();
-    }, 500);    
+    setTimeout(function() {postTextEditor.generate();}, 1000); 
 
     // Create postExtendedText Editor
     postExtendedTextEditor = new HTMLArea("postExtendedText", config);
     postExtendedTextEditor.registerPlugin(EnterParagraphs);
 
     // Generate postExtendedText Editor
-    setTimeout(function() {
-        postExtendedTextEditor.generate();
-    }, 500);
-    //---------------------------------------------------------------------
+    setTimeout(function() {postExtendedTextEditor.generate();}, 1000); 
     
     return false;
 };

Modified: plog/trunk/js/htmlarea/htmlarea.js
===================================================================
--- plog/trunk/js/htmlarea/htmlarea.js	2005-02-06 21:05:08 UTC (rev 980)
+++ plog/trunk/js/htmlarea/htmlarea.js	2005-02-07 04:59:26 UTC (rev 981)
@@ -71,7 +71,16 @@
 		this._timerUndo = null;
 		this._undoQueue = new Array(this.config.undoSteps);
 		this._undoPos = -1;
-		this._customUndo = false;
+		
+		// -------------------------------------------------------------
+        // PLOG HTMLAREA TWEAK
+        // Changed by: Mark Wu
+        // Date: 2005/02/05
+        // Purpose: Set the customUndo to "true" to fix Undo/Redo problem
+        // -------------------------------------------------------------
+		this._customUndo = true;
+		// -------------------------------------------------------------
+		
 		this._mdoc = document; // cache the document, we need it in plugins
 		this.doctype = '';
 	}




More information about the pLog-svn mailing list