id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
413,Proposal: function to help gecko when unhidding the editor,didier Belot,gogo,"With gecko based browser, when Xinha is used in a tabbed form which need to hide the editor, it doesn't works after being visible again.

One solution is to switch it to source mode, then back to html mode, and then it works again.

So, I propose to add a little function to htmlarea.js. Here is a patch for this:

{{{
--- src/xinha/xinha/htmlarea.js	2005-07-23 17:18:38.000000000 +0200
+++ js/xinha/htmlarea.js	2005-07-24 21:09:24.000000000 +0200
@@ -2000,6 +2000,14 @@
   }
 };
 
+// helper func for gecko unhidding the editor
+HTMLArea.prototype.geckoUnhide = function() {
+  if(this.is_gecko && this._editMode=='wysiwyg') {
+    this.setMode('textmode');
+    this.setMode('wysiwyg');
+  }
+};
+
 HTMLArea.prototype.setFullHTML = function(html) {
   var save_multiline = RegExp.multiline;
   RegExp.multiline = true;
@@ -5491,4 +5499,4 @@
 }
 
 HTMLArea.init();
-HTMLArea.addDom0Event(window,'unload',HTMLArea.collectGarbageForIE);
\ No newline at end of file.
+HTMLArea.addDom0Event(window,'unload',HTMLArea.collectGarbageForIE);
}}}

",defect,closed,normal,,Xinha Core,,normal,wontfix,,
