Ticket #169 (closed defect: worksforme)
deactivated editors with Firefox when there is more than one editor
| Reported by: | michael.hosse@… | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
This bug is already known, but the workaround in htmlarea.js did not work for me. So i tried some alternatives and found one. :-). It is very simple, just deactivate the editor an reactive it. Here is the patch for htmlarea.js:
Index: C:/workspace/xinha/htmlarea.js
===================================================================
--- C:/workspace/xinha/htmlarea.js (revision 83)
+++ C:/workspace/xinha/htmlarea.js (working copy)
@@ -1497,18 +1497,12 @@
doc.write(html);
doc.close();
+ // if we have multiple editors some bug in Mozilla makes some lose editing ability
+ if(HTMLArea.is_gecko)
+ editor.deactivateEditor();
+
// redo it for some obscure reason that IE need it..
editor.activateEditor();
-
- // if we have multiple editors some bug in Mozilla makes some lose editing ability
- if(HTMLArea.is_gecko)
- {
- HTMLArea._addEvents(
- editor._iframe.contentWindow,
- ["mousedown"],
- function() { editor.activateEditor(); }
- );
- }
// editor.focusEditor();
// intercept some events; for updating the toolbar & keyboard handlers
Change History
Note: See
TracTickets for help on using
tickets.
