Hugh -- 

I've reworked my Javascript so that the main window's code can
retrieve the HTML from the TinyMCE editor inside the iframe. 

Attached are the two source files.  I'll repeat my instructions
below so you don't have to dig back to the original message

To use, fix the path to qooxdoo.js in TinyMCE_example.html and the
path to TinyMCE in tinymce.html

In TinyMCE_example.html, I define a QxIframe to reference
tinymce.html, which has the code to initialize TinyMCE.

I added a QxButton to the page.  The event handler for this button
calls a function called getHTML() that I defined in tinymce.html.  
This function communicates with the TinyMCE to get the contents.  
In this way, the QX code in TinyMCE_example.html can use the contents
of the editor.

Note that tinymce.html also contains some code to auto-resize the
editor as the QxIframe is resized.

I don't know if there's a cleaner way to accomplish this, but this
seems fairly robust, and it keeps a very clean delineation between
the QX code and the TinyMCE code.

Jason Priebe
CBC New Media 
Title: TinyMCE Test
This is some content that will be editable with TinyMCE.

Reply via email to