Hello MAtes,
I am having this problem of adding a script element in a rich text editor box.
i am doing this. The problem is that it won't add the script tag alltogather, or give an error "Unknown Runtime Error".
Its only with the script element as other elemets suscha s Div, img are all being added correctly.
I am having this problem of adding a script element in a rich text editor box.
i am doing this. The problem is that it won't add the script tag alltogather, or give an error "Unknown Runtime Error".
Its only with the script element as other elemets suscha s Div, img are all being added correctly.
Code:
editor = window.opener.document.getElementById('WebWizRTE');
scr = editor.contentWindow.document.createElement('script');
scr.setAttribute('type', 'text/javascript');
scr.setAttribute('language', 'JavaScript');
scr.innerHTML('var a;');
editor.getElementById('myScript').appendChild(scr);
Comment