Polskie wsparcie PrestaShop

PrestaShop => Konfiguracja => Wątek zaczęty przez: shapp w Marzec 17, 2013, 05:28:49 pm

Tytuł: Jak zwiększyć funkcjonalność edytora tinyMCE w Preferencje / CMS ?
Wiadomość wysłana przez: shapp w Marzec 17, 2013, 05:28:49 pm
Napotkałem taki problem, że edytor tekstu tinyMCE, który edytuje strony CMS jest okrojony o niektóre funkcje (klawisze), m. in. tak istotne jak wielkość czcionki, format i inne.
Można to zmienić, aby edytor tinyMCE wyglądał tak jak np. w edycji Produktów (Katalog / Produkty).

Przed zmianą edytor wyglądał tak jak w załączniku nr 1, a po zmianie jak w załączniku nr 2.

Aby dokonać zmian należy wyedytować plik admin\themes\default\template\helpers\form\form.tpl

należy zmienić linie:


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

na

                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"