Ticket #858 (closed defect: wontfix)

Opened 5 years ago

Last modified 5 years ago

If an Xinha editor does in hidden element whet it generates, it freezes

Reported by: guest Owned by: gogo
Priority: highest Milestone:
Component: Xinha Core Version:
Severity: major Keywords: xinha editors freeze hidden element
Cc:

Description

I have some textarea(s) inside my form, some of them are hidden (inside a div with style display:none). after xinha generate editors, when i change div(s) display to show the elements, the Xinha editors inside them look freeze.

but after using deactivateEditor() activateEditor(), toolbar works but content area of editor still freezes.

in IE and Firefox

Change History

Changed 5 years ago by bsimkinsATintsoftDOTch

I have encountered similar problems (edition interface with tab for multilingual edition).

Here is a work around I have found, which you need to include in the js which changes the tab display:

ed=HTMLEditors[idOfEditorHere];
if(!ed._iframeLoadDone)
  ed.generate();

I'm not sure whether this is 'clean' or not, but it seems to work for me... (As an aside: in the same context, the layout of Xinha goes completely wrong when switching from/to html-mode).

Changed 5 years ago by gogo

  • status changed from new to closed
  • resolution set to wontfix

Not a bug in Xinha, it's to work around browser problems. You must follow some rules...

1. Deactivate editors before hiding them, or showing them (or any parent element). 2. Editors must be visible when you create them, you should not create an editor when hidden.

Note: See TracTickets for help on using tickets.