London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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.