Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#965 closed defect (fixed)

When switching between Xinhas in the same page, code mode won't restore access

Reported by: support@… Owned by: gogo
Priority: high Milestone:
Component: Xinha Core Version: trunk
Severity: major Keywords: multiple xinhas, disable toolbar, textmode bug



Single HTML page with two xinha areas.

Steps to reproduce error

  1. Go to first Xinha area
  2. Switch to textmode
  3. Go to second Xinha
  4. Go back to first Xinha
  5. Toolbar does not automatically reactivate.

I tried to debug this a little and I believe that the issue is that there is an event attached to the iframe somewhere that catches onfocus and out of focus, so when we are in text mode that iframe is no longer there, so clicking the textarea does not activate the triggers.

I disabled the code that hide the iframe when switching to textmode, in this situation I was able to regain control of my xinha, after the bug producing steps. Obviously this is not a proper solution, but this is what makes me believe that the problem lies with a missing event somewhere.

Change History (3)

comment:1 Changed 14 years ago by guest

Possible Workaround

Index: XinhaCore?.js
--- XinhaCore?.js (revision )
+++ XinhaCore?.js (working copy)

@@ -3025,6 +3023,7 @@




+ if(this._editMode=='textmode' && btn.text) continue;

btn.state("enabled", false);



comment:2 Changed 14 years ago by ray

  • Resolution set to fixed
  • Status changed from new to closed

rev [758]: clicking in the textarea now re-enables toolbar

comment:3 Changed 14 years ago by ray

Actually this seemed only to happen in Mozilla while in IE the toolbar wasn't disabled at all (fullscreen & textmode buttons still active, though another editor was activated).

This seems not correct, i'll open another ticket for that.

Note: See TracTickets for help on using tickets.