Quick Tip – Enable all tinyMCE commands in Prestashop 1.5

For some reason, Prestashop 1.5 has seen its visual editor fire power cut down drastically. But hey, no fear, in today’s quick tip we’ll see how easy it is to have all those styling buttons back and fully working

Prestashop version: Prestashop 1.5.2. Useful for all 1.5.x so far

Watch the screencast

Text version

Please note that this fix applies up to the latest Prestashop 1.5 version, which, at the time I am writing, is 1.5.2. It’s not needed in Prestashop 1.4.
Go to your admin folder, then themes/default/template/helpers/form/ and open up form.tpl.

At about line 400, you will find some javascript code. Change the following

				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 : ""

Into 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",

Of course, these are te default buttons. If you want to add only some of them, you can have a look at the tinyMCE documentation

 

Additional Resources

You like the tuts and want to say "thank you"? Well, you can always feel free to donate:

  • lordbdp

    Done !
    But it’s only for CMS pages, so I search to have it for all Admin pages with editor on them.

    How doing plz ?

  • Milad

    I use PS ver 1.5.4.1 and i can’t find this lines on form.tpl and also i did other methods but i couldn’t enable TinyMCE buttons.appreciat evryone help me about this problem. thank you

  • Silver

    the tip saves so much time!!! thank you very much

  • http://www.BiGoodies.com LordBDP

    Hi,

    I can’t find the lines on PS 1.5.4.1.

  • https://www.kisekistudio.com/ Kiseki

    Cheers dude, worked a charm.

  • Chris

    Thanks, but how do I get it working for the categories?

  • http://www.coolistore.com Marlon Martinez

    Hello… Thanks for the information. It was very clear but It didn’t help me at all because my problem is that I don’t have any buttons at all. I only can put plain text in the controls. I did what you said but the buttons still don’t showed up. If i put html text that i edited in dreamwever it works on the online store but that’s no the idea. Can you help with any idea? I will appreciatte a lot because I have been with this issue for about a month …Thanks a lot for your time and help.

    Regards from Mexico

    Marlon Martinez

    P.D: Sorry for my english….I’m going to improve… I promise you.

  • http://fashioneyewear.dk Allan

    Not working for me on PS 1.5.3

  • Jeevan

    Thanks,
    Buttons added
    Bullet style not working in a theme but in default theme its working

  • Pimpin

    Thank you very much !!! You are a great help !

  • Jeroen

    Thanks very much!

  • Greg

    It’s working now. Maybe it was a cache problem. Thank you.

  • Greg

    Hello,

    Thank you for the tip but it’s not working for me. I’m on 1.5.2.0 but I’m using a theme from templatemonster. Do you have any idea ?

  • http://www.vincenzolarosa.it Vincenzo

    thank’s ;) now is perfect.. ;)

  • Isaac

    Thank you very very much.

  • ken

    One thousand thanks for this tip !

    • http://decors.info.pl Obrusy

      Not working in PS 1.5.5 :(

Store Top Sales

You like the tuts and want to say "thank you"? Well, you can always feel free to donate: