0

Javascript error in CkEditor with IE9

asked 2011-05-06 03:59:49 +0800

Neus gravatar image Neus
1415 14

Hi all,
I have this window with ckeditor in it.

 <window id="VentanaEditor" title="_" border="normal" position="parent" mode="overlapped" width="99%"
	defaultActionOnShow="moveDiagonal" closable="true"   focus="true">
		 <ckeditor id="EditorHtml" width="100%" height="450px"/>
	         <textbox id="TBContenidoHTML" width="100%" visible="false"/>	
		<div id="DivBotonera" sclass="BotoneraListBox" height="27px">
		        <hbox width="99%" pack="center">
			        <button id="BTAceptar" onMouseUp='alert("MouseUp");' autodisable="self" label="_Aceptar">
				       <attribute name="onClick"><![CDATA[
					       TBContenidoHTML.setFocus(true);
					       desktop.setAttribute("HTMLDevuelto", TBContenidoHTML.getValue());
					       //Cerramos ventana
					       VentanaEditor.detach();
				       ]]></attribute>
			       </button>
		       </hbox>
	       </div>	
</window> 

Using IE9 when BTAceptar is clicked a javascript error appears.In IE8 it works fine.
If you copy this code in the sandbox you can check what I'm saying.

Is it a bug?Am I doing something wrong?

Thank you

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2011-07-13 01:06:55 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Hi Windeyu,
dont mind it :).

link publish delete flag offensive edit

answered 2011-07-13 00:16:53 +0800

windeyu gravatar image windeyu flag of United States
288 3

Hi benbai,
Today I test again and now it works. I'm sorry I wasted your time. I was careful enough to clear the browser cache. Somewhere must have kept the cache until I restarted my machine fresh today and the problem is gone.
Thanks again.

link publish delete flag offensive edit

answered 2011-07-12 05:03:27 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Hi, Windeyu,
I just test your code with the latest jar and it works fine,
the video of this test is available at http://www.badongo.com/vid/1902226.

link publish delete flag offensive edit

answered 2011-07-12 02:09:48 +0800

windeyu gravatar image windeyu flag of United States
288 3

updated 2011-07-12 02:11:04 +0800

Hi Benbai,
Thank you very much for the pointer. I tried the latest build (zk-CKEditor-bin-3.6.0.0-FL-2011-07-12.zip). I cleared my IE9 cache, but I still got the following javascript error.
"Failed to process
rm
Unable to get value of the property 'innerHTML': object is null or undefined (TypeError)."

I have code like below

<button id="newButton" label="New">
    <attribute name="onClick">
        Window win = (Window) Executions.createComponents("post.zul", null, null);
	win.doModal();
    </attribute>
</button>

post.zul
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
    <window id="postWin" title="New Post" width="600px" height="330px" border="normal" position="center" closable="true">
        <zscript><![CDATA[
            void onClose() {
                postWin.detach();
            }
        ]]></zscript>
        <ckeditor id="editor" width="580px" height="260px">
        </ckeditor>
        <button label="Close" onClick="onClose();"/>
    </window>
</zk>

When I close the modal window, I get the js error.
Thanks.

link publish delete flag offensive edit

answered 2011-07-10 20:16:49 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Hi Windeyu,
We moved it to google code, it can be downloaded from zkckeditor.

link publish delete flag offensive edit

answered 2011-07-10 16:44:41 +0800

windeyu gravatar image windeyu flag of United States
288 3

Hi benbai,
May I know which freshly build that contain the fix? Is it ZK's freshly build or ZK CKEditor's freshly build (which I can't find)?
Thanks.

link publish delete flag offensive edit

answered 2011-07-05 02:41:18 +0800

Neus gravatar image Neus
1415 14

Thank you very much benbai

link publish delete flag offensive edit

answered 2011-07-04 20:57:05 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Sorry for the delay of reply,
it's a bug and has been fixed now.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-06 03:59:49 +0800

Seen: 1,158 times

Last updated: Jul 13 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More