Hello girls and guys,
I try to save a javascript snipped after leaving a dialog. It worsk in Chrome and FF but not IE7. It seams somehow the data is not stored inside innerHTML.
The code:
Somehow the problem occurs inside
Could you help me?
I try to save a javascript snipped after leaving a dialog. It worsk in Chrome and FF but not IE7. It seams somehow the data is not stored inside innerHTML.
The code:
onOk : function() { var videoNode = null; if ( !this.fakeImage ) { videoNode = CKEDITOR.dom.element.createFromHtml( '<cke:video></cke:video>', editor.document ); } else { videoNode = this.videoNode; } var extraStyles = {}, innerHTML; this.commitContent( videoNode, extraStyles ); innerHTML = '<!--{cke_protected}' + encodeURIComponent( '<script language="JavaScript" type="text/javascript">\n' + ' $(document).ready(function() {\n' + " jwplayer('" + videoNode.getAttribute('id') + "').setup( configCKEditor('" + videoNode.getAttribute('src') + "', " + videoNode.getAttribute('width') + ", " + videoNode.getAttribute('height') + ") );\n" + ' });\n' + '</script>') + '-->'; videoNode.setHtml( innerHTML ); // Refresh the fake image. var newFakeImage = editor.createFakeElement( videoNode, 'cke_video', 'video', false ); newFakeImage.setStyles( extraStyles ); if ( this.fakeImage ) { newFakeImage.replace( this.fakeImage ); editor.getSelection().selectElement( newFakeImage ); } else editor.insertElement( newFakeImage ); },
Somehow the problem occurs inside
videoNode.setHtml( innerHTML );
Could you help me?