wdrożenia PrestaShop Powiększenie zdjęć moduł

Jak zwiększyć funkcjonalność edytora tinyMCE w Preferencje / CMS ?

  • 0 Odpowiedzi
  • 1648 Wyświetleń

0 użytkowników i 1 Gość przegląda ten wątek.

*

Offline shapp

  • Użytkownik
  • **
  • 36
  • 0
  • PrestaShop: PS
  • Status: forum
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"