Elxis CMS Forum
Support => General => Topic started by: rentasite on February 02, 2007, 17:02:58
-
Hi,
i tried to insert this code in an Autonomous Page . But without any success. Isn't it possible to use that kind of code?
<iframe src="http://www.exampleee.gr/examplechat/chat/31495" width="500" height="450" scrolling="no" frameborder="no"></iframe>
-
I advise you to use wrapper instead.
-
Have you tried, using the No WYSIWYG editor?
TinyMCE, normally will block this kind of code.
Hi,
i tried to insert this code in an Autonomous Page . But without any success. Isn't it possible to use that kind of code?
<iframe src="http://www.exampleee.gr/examplechat/chat/31495" width="500" height="450" scrolling="no" frameborder="no"></iframe>
-
Have you tried, using the No WYSIWYG editor?
;D After your post, i went back and changed the WYSIWYG Editor & it worked. And i must say, that the "chat room" script is been embedded into the site, very nice! :D
Thanks alot eliasan. ;)
-
While i was reading the ELXIS book (page 99)...... i found out that <iframe> was listed in the Prohibited Elements of TinyMCE Editor.
So the problem i faced with the <iframe>, wasn't really the editor's disfunction. ;)
S O L V E D
-
removing iframe from Prohibited Elements is not enough ... you need to add extended_valid_elements in tinymce.php near line 297
$out .= 'extended_valid_elements : "iframe[src|style|width|scrolling|frameborder|height|name|align]",'._LEND;
INSIDE:
$out = $editor_out;
$out .= '<script type="text/javascript">'._LEND;
......................................
....................................
$out .= $content_css;
$out .= "});\n";
$out .= "</script>\n";
return $out;
inside the script that will print tiny parameters at the html code of the site.
NOTE: any modification in tinymce.php will be overridden from updates.. also use at your own risk.