TheRedFeathers Posted October 10, 2012 Share Posted October 10, 2012 Hi, I hope someone can help. I'm wondering why the tinyMCE editor in CMS pages is limited to only 2 lines of options (see attachment), rather than the 4 lines in the product editors. I'm specifically trying to add the selectformat option so my client can add headings without having to open the html editor. If anyone can point me in the right direction to add this feature it would be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
math_php Posted October 10, 2012 Share Posted October 10, 2012 (edited) Hi ThunderCat For version 1.5 A javavascript function is called to init TinyMCE , you can see it in embeded javascript in product editing page. The init function is named tinySetup(). In CMS page, the configuration settings given to tinySetup display a lighter tinyMce editor. Cheers Edited October 10, 2012 by math_php (see edit history) Link to comment Share on other sites More sharing options...
DBMAN Posted October 10, 2012 Share Posted October 10, 2012 1.5.1.0 So how do you make the tinymce editor show with full advanced lines of options/buttons? I always want the editor to show all the lines since my standard doesn't even show the font size and it is a hassle to edit the html directly. For some reason I can't see the large thumbnail from the OP but looks like the same for him/her. Same goes for the home page editor module which also only has 2 lines of buttons. Thanks in advance! P.S. oh and Duh!, can't figure out how to attach a thumbnail here. Can't see an attachment option. Link to comment Share on other sites More sharing options...
math_php Posted October 11, 2012 Share Posted October 11, 2012 Hi DbMan 1.5.1.0 So how do you make the tinymce editor show with full advanced lines of options/buttons? You can set your own configuration with such call : tinySetup({ editor_selector :"autoload_rte", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull|cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo", theme_advanced_buttons2 : "link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "" }); The code above show you a tinySetup() call for a limited options tinyMce If you want more options go for tinyMce documentation and look at product editing where the configuration has more options. P.S. oh and Duh!, can't figure out how to attach a thumbnail here. Can't see an attachment option. For this one, before posting click on 'More Reply Options' and lights and magic will appear Cheers 2 Link to comment Share on other sites More sharing options...
DBMAN Posted October 11, 2012 Share Posted October 11, 2012 Thanks on both counts. Problem is my js/tinymce.inc.js file already has the advanced settings for buttons3 and buttons4: default_config = { mode : "specific_textareas", theme : "advanced", skin:"cirkuit", editor_selector : "rte", editor_deselector : "noEditor", plugins : "safari,pagebreak,style,table,advimage,advlink,inlinepopups,media,contextmenu,paste,fullscreen,xhtmlxtras,preview", // Theme options theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, content_css : pathCSS+"global.css", document_base_url : ad, width: "600", height: "auto", font_size_style_values : "8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt", elements : "nourlconvert,ajaxfilemanager", file_browser_callback : "ajaxfilemanager", entity_encoding: "raw", convert_urls : false, language : iso } Additionally the font and font size don't show and those are in your noted (and my) basic setup (see thumbnail) but I also note that the buttons shown don't match even the two rows currently shown in the editor. I know some time back a bug was reported about this but the response was similar in that it wasn't a bug but now I wonder though you would think there would be more postings about it. I'll continue to try and take a look since it is such a time saver but any advice appreciated. 1 Link to comment Share on other sites More sharing options...
Popular Post AKJV Posted October 13, 2012 Popular Post Share Posted October 13, 2012 I just figured out how to get the complete feature set back again in the editor for CMS pages in PS 1.5. Go to admin\themes\default\template\helpers\form\form.tpl and replace the segment below: theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull|cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo", theme_advanced_buttons2 : "link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "" with this: theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", Seems to work just fine Do make sure that you edit the correct file: there are multiple form.tpl files in the admin (sub)folders. 17 Link to comment Share on other sites More sharing options...
DBMAN Posted October 14, 2012 Share Posted October 14, 2012 (edited) You are the man/woman! I would never have found that file, who would have thought. Helloooo WYSIWYG! Mark my issue as solved. Edited October 14, 2012 by DBMAN (see edit history) Link to comment Share on other sites More sharing options...
AKJV Posted October 14, 2012 Share Posted October 14, 2012 You are the man/woman! I would never have found that file, who would have thought. Helloooo WYSIWYG! Mark my issue as solved. You're welcome I still don't understand why the editor for CMS pages has been crippled in functionality in PS 1.5, especially since this is not the case in PS 1.4. Perhaps the prestateam will restore this in a future release but at least this solution works for PS 1.5.0.17 and 1.5.1 users. Link to comment Share on other sites More sharing options...
simon2k12 Posted November 10, 2012 Share Posted November 10, 2012 Thank you very much. This solves ALLOT of headaches! Link to comment Share on other sites More sharing options...
yusufzulkarnain Posted November 11, 2012 Share Posted November 11, 2012 You're welcome I still don't understand why the editor for CMS pages has been crippled in functionality in PS 1.5, especially since this is not the case in PS 1.4. Perhaps the prestateam will restore this in a future release but at least this solution works for PS 1.5.0.17 and 1.5.1 users. I think so like your feeling. When I add a new CMS page and go to CMS Categories Edit, I can not edit "Page Content" because I don't find the form like this image : Help please! Link to comment Share on other sites More sharing options...
DBMAN Posted November 13, 2012 Share Posted November 13, 2012 You don't say specifically, #6 above didn't solve your problem? Link to comment Share on other sites More sharing options...
archproject Posted November 18, 2012 Share Posted November 18, 2012 Thank you very much with this ... I dunno how will I get along with limited buttons in the tinymce hahahahha...really appreciate it. Should change the title with [sOLVED] Link to comment Share on other sites More sharing options...
lovemyseo Posted January 14, 2013 Share Posted January 14, 2013 (edited) I just figured out how to get the complete feature set back again in the editor for CMS pages in PS 1.5. Go to admin\themes\default\template\helpers\form\form.tpl and replace the segment below: theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull|cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo", theme_advanced_buttons2 : "link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "" with this: theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", Seems to work just fine Do make sure that you edit the correct file: there are multiple form.tpl files in the admin (sub)folders. AJKV great solution but it needs to be done either using any FTP client of direct access to cpanel search for requested file and then make edits great solution excellent Edited January 14, 2013 by lovemyseo (see edit history) 1 Link to comment Share on other sites More sharing options...
A1TH Posted February 2, 2013 Share Posted February 2, 2013 Great, thanks for this ! Link to comment Share on other sites More sharing options...
be_tnt Posted February 6, 2013 Share Posted February 6, 2013 Why not overriding the CMS form.tpl? What I have done: in override\controllers\admin\templates\cms\helpers\form\, add form.tpl with the following content: {extends file="controllers/cms/helpers/form/form.tpl"} {block name="autoload_tinyMCE"} tinySetup({ editor_selector :"autoload_rte", theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak" }); {/block} It looks like it's working well. Does anyone try this solution? 2 Link to comment Share on other sites More sharing options...
furehead Posted February 19, 2013 Share Posted February 19, 2013 @be_tnt: Thank you be_tnt - your solution works great with prestashop 1.5.3.1 for me Link to comment Share on other sites More sharing options...
Spainman Posted February 24, 2013 Share Posted February 24, 2013 Hi all, I haved looked through my FTP files but I cannot find "admin\themes\default\template\helpers\form\form.tpl" My url is: http://62.81.159.230/~canicoba/index.php Can someone help me with this? Regards. 1 Link to comment Share on other sites More sharing options...
jeevanoss Posted March 17, 2013 Share Posted March 17, 2013 Thanks, Buttons added Bullet style not working in a theme but in default theme its working Link to comment Share on other sites More sharing options...
archproject Posted April 9, 2013 Share Posted April 9, 2013 This is an update to this thread where in PS 1.5.4 it has changed to the file in .../js/tinymce.inc.js all you have to do is remove the // on button3 and button4 that has all the buttons name (on line 16 and 17)then add the // to the empty button3 and button4 (on line 18 and 19) just like below theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor, media, fullscreen", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,|,ltr,rtl,|", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", //theme_advanced_buttons3 : "", //theme_advanced_buttons4 : "", 1 Link to comment Share on other sites More sharing options...
Scoof Posted April 13, 2013 Share Posted April 13, 2013 I just figured out how to get the complete feature set back again in the editor for CMS pages in PS 1.5. Go to admin\themes\default\template\helpers\form\form.tpl and replace the segment below: theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull|cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo", theme_advanced_buttons2 : "link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "" with this: theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", Seems to work just fine Do make sure that you edit the correct file: there are multiple form.tpl files in the admin (sub)folders. Thank you !! I don't understand why prestashop doesn't include this in the CMS page editor to begin with Link to comment Share on other sites More sharing options...
be_tnt Posted April 15, 2013 Share Posted April 15, 2013 please note that it's better to override files in prestashop instead of modifying core files. Have a nice day! Link to comment Share on other sites More sharing options...
d(shay_lene)b Posted April 23, 2013 Share Posted April 23, 2013 Why not overriding the CMS form.tpl? What I have done: in override\controllers\admin\templates\cms\helpers\form\, add form.tpl with the following content: {extends file="controllers/cms/helpers/form/form.tpl"} {block name="autoload_tinyMCE"} tinySetup({ editor_selector :"autoload_rte", theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak" }); {/block} It looks like it's working well. Does anyone try this solution? Thank you!! It work fine in PS 1.5.4. Link to comment Share on other sites More sharing options...
MrC8 Posted July 11, 2013 Share Posted July 11, 2013 This is an update to this thread where in PS 1.5.4 it has changed to the file in .../js/tinymce.inc.js all you have to do is remove the on button3 and button4 that has all the buttons name (on line 16 and 17) then add the to the empty button3 and button4 (on line 18 and 19) just like below theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor, media, fullscreen", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,|,ltr,rtl,|", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", //theme_advanced_buttons3 : "", //theme_advanced_buttons4 : "", THANK YOU !!! This works very well !!! Link to comment Share on other sites More sharing options...
vekia Posted July 11, 2013 Share Posted July 11, 2013 you can also check this tutorial for extending tinyMCE - all options + support all of html / js / css tags 1 Link to comment Share on other sites More sharing options...
Guorilla Posted August 10, 2013 Share Posted August 10, 2013 Hmmmz, none of the above seems to work for me... Using 1.5.4, anyone got a clue? I tried Vekia's solution and I tried archproject's solution, also tried both at the same time... Really need the advanced TinyMVE... Link to comment Share on other sites More sharing options...
Guorilla Posted August 10, 2013 Share Posted August 10, 2013 OK, I got the buttons working now, but now the superscript option doesn't seem to work... I need oC but I get oC, while in the source code <sup>o</sup>C is mentioned... Beats me... Link to comment Share on other sites More sharing options...
x13_pl Posted August 14, 2013 Share Posted August 14, 2013 how I can add full tiny in product on back office ?? Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 take a look here: enable all tinymce options in prestashop if you use ps 1.5.x it will work as you expect. Link to comment Share on other sites More sharing options...
x13_pl Posted August 14, 2013 Share Posted August 14, 2013 I use it, and heve only in CMS, no in Product description Link to comment Share on other sites More sharing options...
x13_pl Posted August 17, 2013 Share Posted August 17, 2013 any ideas on how to do this? Link to comment Share on other sites More sharing options...
D-bird Posted September 16, 2013 Share Posted September 16, 2013 I've done changes in both tinymce.inc.js and form.tpl files and got the extra toolbar lines shown (in Products -> short description) but I'm still not able to save the product with javascript in short description. I'm trying to get there a javascript popup link.Any ideas what to try next? Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2013 Share Posted September 16, 2013 tutorial that i created isn't related to product page, it is related to CMS pages only. I can write new tutorial if you're interested Link to comment Share on other sites More sharing options...
D-bird Posted September 16, 2013 Share Posted September 16, 2013 I would really much appreciate that! Would save my life right now Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2013 Share Posted September 16, 2013 okay, so it will be ready today im going to write it thanks for suggestion 1 Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2013 Share Posted September 16, 2013 I would really much appreciate that! Would save my life right now here it is: full featured tinymce editor on product edit page Link to comment Share on other sites More sharing options...
D-bird Posted September 17, 2013 Share Posted September 17, 2013 Works like magic! Thank you a lot vekia, saved my life Link to comment Share on other sites More sharing options...
vekia Posted September 17, 2013 Share Posted September 17, 2013 glad to hear that it works as you expected may i know for what purposes you want to use js scripts in product description? im so curious about that Link to comment Share on other sites More sharing options...
D-bird Posted September 17, 2013 Share Posted September 17, 2013 I want to have a javascript popup link in the short description. So that one has an opportunity for sort of a quick view of products when on product list page. There in the new window will be a 360 degree product shot and some details, so I don't even need to worry about getting that 3D view to product page. Hope this makes some sense Link to comment Share on other sites More sharing options...
totallighting.sk Posted October 22, 2013 Share Posted October 22, 2013 Working in 1.5.6, thanks for help! Link to comment Share on other sites More sharing options...
JohnADK Posted November 6, 2013 Share Posted November 6, 2013 (edited) Vekia's tutorial for using full tinyMCE for CMS editor worked like a charm for me. I copied the form.tpl from admin/themes/default/template/helpers/form to /override/controllers/admin/templates/cms/helpers/form and then in the override copy, I edited the form.tpl as per Vekia's instructions. Even though I am running PS 1.5.6.0, I did not have to change the Validate.php. My code in this file is not the same as in Vekia's tutorial, so I am assuming that this has been fixed during an upgrade (?), or something else. I have a [\s) in my code and not a [ \t\n]. It seems to work now as expected. Thank you, Vekia. Edited November 6, 2013 by JohnADK (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2013 Share Posted November 6, 2013 thank you for kind words, my tip related to validate was there because of problems in several shops with this function. The weirdest thing is fact that sometimes it works well without modification, like in your store Link to comment Share on other sites More sharing options...
lovemyseo Posted March 16, 2014 Share Posted March 16, 2014 glad to hear that it works as you expected may i know for what purposes you want to use js scripts in product description? im so curious about that Did not work with PS 1.5.4 Link to comment Share on other sites More sharing options...
lovemyseo Posted March 16, 2014 Share Posted March 16, 2014 thank you for kind words, my tip related to validate was there because of problems in several shops with this function. The weirdest thing is fact that sometimes it works well without modification, like in your store Worked perfect with product and cms pages editor what about categories page they have no editor at all in PS 1.5.4? Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2014 Share Posted March 16, 2014 it;s because of prestashop 1.5.4 - i know that it will be sound strange... but 1.5.4 doesnt support tinymce editor for category desc in this case it's necessary to modify admin category contoller + template file Link to comment Share on other sites More sharing options...
lovemyseo Posted March 16, 2014 Share Posted March 16, 2014 it;s because of prestashop 1.5.4 - i know that it will be sound strange... but 1.5.4 doesnt support tinymce editor for category desc in this case it's necessary to modify admin category contoller + template file Ok so any guideline to that ? Also we can not add manufacturer tab on product detail page like we could have in rpestashop 1.4.9? Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2014 Share Posted March 16, 2014 Ok so any guideline to that ? Also we can not add manufacturer tab on product detail page like we could have in rpestashop 1.4.9? controllers/admin/AdminCategoriesController.php change array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), to: array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), 1 Link to comment Share on other sites More sharing options...
lovemyseo Posted March 16, 2014 Share Posted March 16, 2014 controllers/admin/AdminCategoriesController.php change array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), to: array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), WIll this work on PS 1.5.4 as well? Link to comment Share on other sites More sharing options...
vekia Posted March 16, 2014 Share Posted March 16, 2014 yes, this is exactly for 1.5.4 1 Link to comment Share on other sites More sharing options...
lovemyseo Posted March 17, 2014 Share Posted March 17, 2014 yes, this is exactly for 1.5.4 Still do not see any editor options for catagories in prestashop 1.5.4 Link to comment Share on other sites More sharing options...
lovemyseo Posted March 17, 2014 Share Posted March 17, 2014 yes, this is exactly for 1.5.4 I do not see editor even on manufacturer page editing on PS 1.5.4 Link to comment Share on other sites More sharing options...
lovemyseo Posted March 17, 2014 Share Posted March 17, 2014 This is an update to this thread where in PS 1.5.4 it has changed to the file in .../js/tinymce.inc.js all you have to do is remove the on button3 and button4 that has all the buttons name (on line 16 and 17) then add the to the empty button3 and button4 (on line 18 and 19) just like below theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor, media, fullscreen", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,|,ltr,rtl,|", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", //theme_advanced_buttons3 : "", //theme_advanced_buttons4 : "", Did this but button did not appear either on categories or manufacturer page Link to comment Share on other sites More sharing options...
lovemyseo Posted March 17, 2014 Share Posted March 17, 2014 yes, this is exactly for 1.5.4 ok now see editor option for categories what about manufacturer page ? Link to comment Share on other sites More sharing options...
lovemyseo Posted March 17, 2014 Share Posted March 17, 2014 (edited) controllers/admin/AdminCategoriesController.php change array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), to: array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), Hi Vekia you are seriously a prestashop legand (y) thums up for you now I have all editor options in PS 1.5.4 1. For product done 2. For CMS pages done 3. For cat3gories Done 4. For Manufacturer Done Mark this thread as solved big time Edited March 17, 2014 by lovemyseo (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2014 Share Posted March 17, 2014 thank you for information and for your kind words Link to comment Share on other sites More sharing options...
guy7545 Posted March 19, 2014 Share Posted March 19, 2014 Does it work on prestashop 1.6.0.5 ? Link to comment Share on other sites More sharing options...
vekia Posted March 20, 2014 Share Posted March 20, 2014 tinymce editor in prestashop 1.6.0.5 works a bit different than editor from 1.5.x solutions for 1.5.x releases will not work in 1.6 Link to comment Share on other sites More sharing options...
lovemyseo Posted June 28, 2014 Share Posted June 28, 2014 controllers/admin/AdminCategoriesController.php change array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), to: array( 'type' => 'textarea', 'label' => $this->l('Description:'), 'name' => 'description', 'autoload_rte' => true, 'lang' => true, 'rows' => 10, 'cols' => 100, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), same thigns discussed above are not working on prestashop 1.5.6.2? any ideas ? Link to comment Share on other sites More sharing options...
vekia Posted June 28, 2014 Share Posted June 28, 2014 where you want to use this code? im asking because version 1.5.6.2 uses this code already. it's there by default. Link to comment Share on other sites More sharing options...
lovemyseo Posted June 28, 2014 Share Posted June 28, 2014 Something strange happned here, I am able to display advance editor for catagories, cms and manufacturer page but there is no edit options at all at product page.Upgraded from PS 1.4.9 to 1.5.6.2 no editing option at all for product detail page Link to comment Share on other sites More sharing options...
lovemyseo Posted June 28, 2014 Share Posted June 28, 2014 where you want to use this code? im asking because version 1.5.6.2 uses this code already. it's there by default. I just added a reply to post I am able to display options on all pages but there is no editing options at all at product detail page, could you please tell me what can be the issue? Link to comment Share on other sites More sharing options...
lovemyseo Posted June 28, 2014 Share Posted June 28, 2014 where you want to use this code? im asking because version 1.5.6.2 uses this code already. it's there by default. Also you mentioned something about version 1.5.6+ has got additional param: $allow_iframe = false in function! don't forget about it! in your post where I can find these codes where I can find the codes? Link to comment Share on other sites More sharing options...
vekia Posted June 28, 2014 Share Posted June 28, 2014 hello let's clarify what you already did. you upgraded from 1.4.9 to 1.5 and editor disappeared, right? so you even don't used guide Link to comment Share on other sites More sharing options...
lovemyseo Posted June 28, 2014 Share Posted June 28, 2014 hello let's clarify what you already did. you upgraded from 1.4.9 to 1.5 and editor disappeared, right? so you even don't used guide Yes Vekia the [spam-filter] you are right , but stil I tried to implement method you mentioned earlier and able to display all buttons on all other places Link to comment Share on other sites More sharing options...
vekia Posted June 28, 2014 Share Posted June 28, 2014 okay, so, if you don't see editor there, you will not see even after changes you will make (based on tutorial) unfortunately, it's necessary to fix your problem first Link to comment Share on other sites More sharing options...
lovemyseo Posted July 19, 2014 Share Posted July 19, 2014 (edited) okay, so, if you don't see editor there, you will not see even after changes you will make (based on tutorial) unfortunately, it's necessary to fix your problem first I got it right now I foudn your tutorial for http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html PS 1.5.6.2 Could you please explain these steps version 1.5.6+ has got additional param: $allow_iframe = false in function! don't forget about it! in which file these functions will change ? I can see extended version now Edited July 19, 2014 by lovemyseo (see edit history) Link to comment Share on other sites More sharing options...
lovemyseo Posted July 19, 2014 Share Posted July 19, 2014 This is an update to this thread where in PS 1.5.4 it has changed to the file in .../js/tinymce.inc.js all you have to do is remove the on button3 and button4 that has all the buttons name (on line 16 and 17) then add the to the empty button3 and button4 (on line 18 and 19) just like below theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor, media, fullscreen", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,|,ltr,rtl,|", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", //theme_advanced_buttons3 : "", //theme_advanced_buttons4 : "", Nice worked on 1.5.6.2 as well Link to comment Share on other sites More sharing options...
lovemyseo Posted February 10, 2015 Share Posted February 10, 2015 okay, so, if you don't see editor there, you will not see even after changes you will make (based on tutorial) unfortunately, it's necessary to fix your problem first I dont see see TInymMCE options in prestashop 1.0.6.11 when we create new category in CMS section there is only plan simple box for description. Link to comment Share on other sites More sharing options...
lovemyseo Posted February 10, 2015 Share Posted February 10, 2015 I just figured out how to get the complete feature set back again in the editor for CMS pages in PS 1.5. Go to admin\themes\default\template\helpers\form\form.tpl and replace the segment below: theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull|cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,undo,redo", theme_advanced_buttons2 : "link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor,|,hr,removeformat,visualaid,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "" with this: theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak", Seems to work just fine Do make sure that you edit the correct file: there are multiple form.tpl files in the admin (sub)folders. I dont see above code in PS 1.6.11 admin form.tpl ? any reason why? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now