Elxis CMS Forum

Support => General => Topic started by: rentasite on February 02, 2007, 17:02:58

Title: Using <iframe>
Post 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>
Title: Re: Using <iframe>
Post by: datahell on February 02, 2007, 18:14:23
I advise you to use wrapper instead.
Title: Re: Using <iframe>
Post by: eliasan on February 03, 2007, 07:56:42
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>
Title: Re: Using <iframe>
Post by: rentasite on February 03, 2007, 10:58:04
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.  ;)
Title: Re: Using <iframe>
Post by: rentasite on February 04, 2007, 22:58:14
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
Title: Re: Using <iframe>
Post by: ks-net on June 04, 2009, 00:52:42
removing  iframe from Prohibited Elements is not enough ... you need to add extended_valid_elements in tinymce.php  near line 297



Quote
   $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.