Jump to content

Adding IFRAME into Product Description | Using PrestaShop 1.4.4.1


MichaelMcG

Recommended Posts

I am using: PrestaShop™ 1.4.4.1.

 

In my PrestaShop Admin Pages, this TinyMCE seems to be automatically generated in my 'Add/Update Product' type pages.

 

Where/How do I modify this code?

 

</th>

</tr>

</table>

<div class="clear"> </div><script type="text/javascript">

tinyMCE.init({

mode : "specific_textareas",

editor_selector : "description",

theme : "advanced",

plugins : "safari,pagebreak,style,table,advimage,advlink,inlinepopups,contextmenu,paste,fullscreen",

// Theme options

theme_advanced_buttons1 : "newdocument,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",

theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image",

theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap",

theme_advanced_buttons4 : "bold,italic,underline,strikethrough,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,cleanup,help,code,|,forecolor,backcolor,|,ltr,rtl,|,fullscreen",

theme_advanced_toolbar_location : "top",

theme_advanced_toolbar_align : "left",

theme_advanced_statusbar_location : "bottom",

theme_advanced_resizing : true,

width : "600",

height: "auto",

elements : "nourlconvert",

convert_urls : false,

language : "en"

});

</script>

 

I basically would like to add a line to allow iframes to be included.

 

 

Many thanks for your help with this.

Link to comment
Share on other sites

Here is a bigger snippet of my code after the change in tinymce.inc.js. See how it hasn't updated my tinyMCE init code below:

 

 

<script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>

<table class="table" cellpadding="0" cellspacing="0" style="margin:auto;text-align:center">

<tr>

<th>Module <span style="color: green;">blog</span></th>

<th><a href="/admino/index.php?tab=AdminModules&token=73c1082c89c2802e4b2b4a0ce3c4ce86&tab_module=content_management&module_name=blog" style="padding:5px 10px">Back</a></th>

<th><a href="index.php?tab=AdminModulesPositions&token=bc22b0f7e7599315e1f1bcbe6ff6f225&show_modules=62" style="padding:5px 10px">Manage hooks</a></th>

<th style="padding:5px 10px">Manage translations: <a href="index.php?tab=AdminTranslations&token=2cd8be3c78b2979345b3c7d4746bf4b3&type=modules&lang=en#blog" style="margin-left:5px"><img src="/img/l/1.jpg" alt="en" title="en" /></a><a href="index.php?tab=AdminTranslations&token=2cd8be3c78b2979345b3c7d4746bf4b3&type=modules&lang=fr#blog" style="margin-left:5px"><img src="/img/l/2.jpg" alt="fr" title="fr" /></a><a href="index.php?tab=AdminTranslations&token=2cd8be3c78b2979345b3c7d4746bf4b3&type=modules&lang=es#blog" style="margin-left:5px"><img src="/img/l/3.jpg" alt="es" title="es" /></a><a href="index.php?tab=AdminTranslations&token=2cd8be3c78b2979345b3c7d4746bf4b3&type=modules&lang=de#blog" style="margin-left:5px"><img src="/img/l/4.jpg" alt="de" title="de" /></a><a href="index.php?tab=AdminTranslations&token=2cd8be3c78b2979345b3c7d4746bf4b3&type=modules&lang=it#blog" style="margin-left:5px"><img src="/img/l/5.jpg" alt="it" title="it" /></a>

</th>

</tr>

</table>

<div class="clear"> </div><script type="text/javascript">

tinyMCE.init({

mode : "specific_textareas",

editor_selector : "description",

theme : "advanced",

plugins : "safari,pagebreak,style,table,advimage,advlink,inlinepopups,contextmenu,paste,fullscreen",

// Theme options

theme_advanced_buttons1 : "newdocument,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",

theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image",

theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap",

theme_advanced_buttons4 : "bold,italic,underline,strikethrough,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,cleanup,help,code,|,forecolor,backcolor,|,ltr,rtl,|,fullscreen",

theme_advanced_toolbar_location : "top",

theme_advanced_toolbar_align : "left",

theme_advanced_statusbar_location : "bottom",

theme_advanced_resizing : true,

width : "600",

height: "auto",

elements : "nourlconvert",

convert_urls : false,

language : "en"

});

</script>

Link to comment
Share on other sites

  • 7 months later...

Hi.

 

I used Pres 1.5.1, here is a solution to allow iframe in tinyMCE

 

Edit the file "tiny_mce.js", from ../root/js/tiny_mce.js

 

I basically would like to add a line to allow iframes to be included.

 

Find "iframe[" and reemplace "iframe[src|style|width|height|scrolling|marginwidth|marginheight|frameborder]"

 

I can load a google map iframe in each product description!

 

Good luck.

Edited by magudelo62 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...