Edit a topic in Wysiwyg
Hit the pickaxe
Click somewhere in the tml and type for example a space.
Everytime I try I see a Javascript error reported in IE saying "Line 190, char1, object expected"
Taking into consideration the severe errors I have seen in practical use - this one should be at least analysed by someone that knows Javascript.
--
TWiki:Main/KennethLavrsen
- 16 Jan 2008
If a Javascript knowledgable can evaluate the error and it is harmless then downgrade to normal. If it is harmful (potential loss of work) then please fix before 4.2.0. You have hours, not days.
--
TWiki:Main.KennethLavrsen
- 16 Jan 2008
The error is caused by the call of
handleKeyDown()
in the text area field.
<textarea class="twikiTextarea twikiEditboxStyleProportional" id="topic" name="text" rows="22" cols="70" style='width:99%' onkeydown='handleKeyDown(event)'>
It looks like
handleKeyDown()
is not defined.
--
TWiki:Main.FrankSpangenberg
- 18 Jan 2008
Frank is right.
handlekeyDown
is defined in twiki_edit.js, which is not included. The function simply filters the escape key in the edit box, because browsers have differing interpretations.
The error is irritating, but no more serious than that. If you are using IE with debugging enabled, it will halt the process, which is annoying, so it should be fixed. The fix is itself very low risk, as it's a copy-paste of existing code.
CC
Fixed (you may need to restart your browser to force a JS reload)
CC