TinyMCE integration

From ClickTale Wiki
Jump to: navigation, search
ClickTale Wiki
The instructions on this page are intended for self service accounts.
Enterprise customers should contact their account managers for integration support.

TinyMCE sets a domain limitation of the document in the frame in a way that will prevent it from being accessed by ClickTale. The following code will work around that issue.

Instructions

Add this code before including the "tiny_mce/tiny_mce_src.js" file in your HTML.

<script type="text/javascript">
try
{
   if(!parent || !parent.WebPlayer) // if there is no WebPlayer or if the above frame is not accessible
      throw false;
   var tinyMCEPreInit = {base : ''+location.hostname};
} catch(e) {}
</script>