November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
There are some limitations in Internet Explorer:
a) The first tag cannot be a SCRIPT tag
b) You must have some text in the editor
So, this HTML should work:
<DIV id=moviePlugin>movie</DIV>
<SCRIPT type=text/javascript>function test { }</SCRIPT>
Hi,
I'm creating an Editor Plug-in. The plug-in need to put som javascript in the editor, here is a part of my code:
function OnMovieDialogClosed(returnValue, callbackArguments)
{
var plugin = callbackArguments;
var sHTML = '';
var range = plugin.editorDocument.selection.createRange();
sHTML = "<SCRIPT type='text/javascript'>function test { }</SCRIPT><DIV id='moviePlugin'></DIV>";
range.pasteHTML(sHTML);
}
When I run this the only thing that ends up in the editor is the DIV, the SCRIPT part is ignored. Is there any way to do this? It is possible to put javascript code manually in the editor. I can't find any documentation on the editor API.
/Ola.