Using version: Version
2009.3.1208 (Dec 8, 2009)
I have disabled the RemoveJavascript filter using the following code:
RichTextEditor.DisableFilter(EditorFilters.RemoveScripts);
RichTextEditor.DisableFilter(EditorFilters.EncodeScripts);
Now, in the UI in HTML mode I paste in the following code:
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('ea4c7da5-c69b-4b5d-be46-c584cc005caf');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/magic8ball">Magic 8 Ball</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>! Not seeing a widget? (<a href="http://docs.widgetbox.com/using-widgets/installing-widgets/why-cant-i-see-my-widget/">More info</a>)</noscript>
Click Save and the radEditor's contents at the server are:
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script>
Can someone explain to me why the other script content has been removed?
Thank you,
Llad
I have disabled the RemoveJavascript filter using the following code:
RichTextEditor.DisableFilter(EditorFilters.RemoveScripts);
RichTextEditor.DisableFilter(EditorFilters.EncodeScripts);
Now, in the UI in HTML mode I paste in the following code:
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script><script>if (WIDGETBOX) WIDGETBOX.renderWidget('ea4c7da5-c69b-4b5d-be46-c584cc005caf');</script><noscript>Get the <a href="http://www.widgetbox.com/widget/magic8ball">Magic 8 Ball</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>! Not seeing a widget? (<a href="http://docs.widgetbox.com/using-widgets/installing-widgets/why-cant-i-see-my-widget/">More info</a>)</noscript>
Click Save and the radEditor's contents at the server are:
<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"></script>
Can someone explain to me why the other script content has been removed?
Thank you,
Llad