Maybe you can help with this stumper:
I am using the TinyMCE for a WYSIWYG method to edit individual nodes to modify sections of the page - the node is then placed with a php include. The trick is to selectively disable the title, breadcrumbs, etc., basically only display the node content...
I am trying to add in a JavaScript image scroller as an "included node", with a separate data file that would be editable in TinyMCE so the images and links can be changed without coding.
The separate data file works great outside of Drupal, and if I put the data in the Javascript as one Drupal node, and include the node, it works too...
But I find that when I try to put script tags around the data, it is no longer displayed WYSIWYG in TinyMCE.
var picdata = ' <img border="0" src="misc/druplicon-small.png" /><img width="16" height="16" border="0" src="misc/forum-hot-new.png" /><img border="0" src="misc/druplicon-small.png" /><img width="16" height="16" border="0" src="misc/forum-hot-new.png" /><img border="0" src="misc/druplicon-small.png" /><img width="16" height="16" border="0" src="misc/forum-hot-new.png" /> <br /><br />'; var lnkdata = ' ../,../wow,../,../wow,../,../wow ';
(My script parses the data file to extract the img src's and the link href's into arrays)
I tried different document.write and php echo methods, TinyMCE converts the tags into entities that don't function, just become text. I tried putting script tags before and after the php include on the display page, but since Drupal writes all the regular node stuff (which is hacked to be invisible, but still there) it's not javascript code.