Opened 10 months ago

Last modified 10 months ago

#1731 new defect

HTML code button for xinha editing can't be used more than once

Reported by: guest Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc: vidya@…


I installed xinha and am testing it at

(Yeah, I know, that domain wasn't chosen by me...)

When I type in text and then use the <> button to look at the code, it works - once. After that, when pressed, it simply inserts weird characters into the text.

....Burton Smith

Change History (2)

comment:1 Changed 10 months ago by gogo

  • Cc vidya@… added

comment:2 Changed 10 months ago by gogo

Hmm, interesting.

First thing, your xinha_plugins should be

    //{ from: 'xinha-1.5.4/plugins', load: ['InsertVisual'] }

not sure where you got 'default' and 'commonsearch' from, those are not correct.

But that doesn't make a difference to the problem at hand.

For some reason I can't trigger the problem in the Xinha examples, or in my own use of Xinha, but I certainly can in yours. Very strange.

I think probably I have to rewrite the Undo Queue handling slightly to make it a proper stack, it's all a bit odd.

A quick fix for you though would probably be (not tested) to change line 5316 of XinhaCore?.js from

    take = (this._undoQueue[this._undoPos - 1].txt != snapshotData.txt);


    try { take = (this._undoQueue[this._undoPos - 1].txt != snapshotData.txt); } catch(e) { take = true; }

then clear your cache and reload.

Note: See TracTickets for help on using tickets.