Advanced HTML Editor 3 Support Product Page

Answered

Javascript stripped out of data record when saving.

Asked 12 Sep 2014 16:54:24
1
has this question
12 Sep 2014 16:54:24 Bryan Page posted:
When I have photographs or videos to show in my daily diary I insert javascript to create window and display the video/slideshow.

Here is a test record:
<p>Testing, 1, 2, 3, 4 <a href="#" onClick="MyWindow=window.open('slides/2014/08/slides2014072501.php','MyWindow','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=820,height=610'); return false;"><img src="images/odds/camera-icon.png" border="0" width="16" height="16" /></a>
</p>

Now I bring the record into the Advanced HTML Editor 3.

Save the record (you don't have to make any changes).

Now check to see what's left:
<p>Testing, 1, 2, 3, 4 <a href="#"><img src="images/odds/camera-icon.png" alt="" width="16" height="16" border="0" /></a></p>

The javascript has now been stripped out.

If you're using tinymce as the editor you'll find it has the same effect.

Replies

Replied 12 Sep 2014 17:16:51
12 Sep 2014 17:16:51 Teodor Kuduschiev replied:
Hello Bryan,
Please uncheck the "Filter all scripts" option in the Editor configuration dialog and try again.
Replied 12 Sep 2014 17:56:07
12 Sep 2014 17:56:07 Bryan Page replied:
Thanks Teodor, it seems to work, I'll test it thoroughly.
Thanks for the prompt response.

Regards,

Bryan

Reply to this topic