We have installed the FCKeditor, and have had no issues to date.

However, I recently created a node which has iframe tags in it. It renders appropriately, but when I go to edit the page, even when I select the "source" button the html doesnt show.

Can someone shed some light on this?

Thanks

Comments

tkgafs’s picture

Very interested to hear a solution to this as Tinymce appears to do exactly the same thing.

gpk’s picture

I think both TinyMCE and FCKEditor convert the body textarea into an iframe for editing purposes ... maybe this goes haywire if there is then another iframe embedded within that ... May be worth having a look at the source HTML to see what's going on.

tpletcher’s picture

Are you talking about the rendering html in drupal or the rendering html in fck?

gpk’s picture

Using Firebug, I've just had a quick look at what happens when I hit the enable rich text link (TinyMCE). Basically the textarea input box is changed from element.style {display:inline;} to display:none, and then a new table is inserted by TinyMCE to display in place of the textarea. This table contains an iframe which is then used by the editor.

Is it possible for an iframe to contain another iframe? If not then that might explain the problems you are having. Otherwise, using Firebug might help work out what's going on.

(BTW none of the above shows up in the page source - you need something like Firebug to track what the JS is doing to the page.)

ontwerpwerk’s picture

It's possible for an iframe to contain other iframes .. but you are guaranteed that after so many iterations that everything will be messy
especially if in the case of tinyMCE anf FCKeditor the iframe is generated by javascript at rendering time which is also the reason why it won't show in the page source (in most browsers)
so it will be messy

(from a security pov. : why do you allow site-end-users to create iframes?)

--
I work for Ontwerpwerk