« »
August 29th, 2007

WordPress, WYSIWYG Editors, and JavaScript errors

I just ran across an interesting problem when trying to port some content over from the old Coswell Productions site.  When using the TinyMCE editor, trying to create a hyperlink triggered this JavaScript error:

Error: uncaught exception: Permission denied to get property Window.tinyMCE

I tried switching to FCKEditor (which I actually prefer over TinyMCE anyway) and received this error when trying to load the editor widget:

Error: uncaught exception: Permission denied to get property Window.FCKeditorAPI

Turns out the problem was solved on this Joomla! bug tracker post.  When I was editing the site, the domain I was visiting was coswellproductions.org, but the WordPress site is actually configured to use www.coswellproductions.org.  Instant cross-site scripting trigger.  Once I re-logged back in using www.coswellproductions.org, both TinyMCE and FCKEditor worked great.

Leave a Reply