wysiwyg_custom.php v.3.53

5 posts by 2 authors in: Forums > CMS Builder
Last Post: October 5, 2020   (RSS)

By dmn - October 3, 2020 - edited: October 4, 2020

styleselect not showing on toolbar

here is code from wysiwyg_custom.php

// Define toolbar buttons. See list of toolbar buttons here: https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
toolbar1: "formatselect fontsizeselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent | superscript subscript charmap | removeformat fullscreen",
toolbar2: "forecolor backcolor | link anchor | blockquote hr image media table | pastetext paste | customcodesample code",
toolbar3: "styleselect",

By Carl - October 5, 2020

Hi dmn,
That is odd for sure. Did you save the wysiwyg_custom.php file in the /lib folder in the same folder that wysiwyg.php is in? Did you uncomment the code so it's executing the new tinyMCE code? Can you copy/paste the code for the entire function? You can improve the formatting by using the "{;}" button in the toolbar and pasting the code in there.

Carl

PHP Programmer

interactivetools.com

By Carl - October 5, 2020

Are you saying it does work, but when you try to insert the button, it shows up twice? Here's your code below

// Define toolbar buttons. See list of toolbar buttons here: https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
toolbar1: "formatselect fontsizeselect | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent | superscript subscript charmap | removeformat fullscreen",
toolbar2: "forecolor backcolor | link anchor | blockquote hr image media table | pastetext paste | customcodesample code",
toolbar3: "styleselect",

You have the "styleselect" button in toolbar1 and toolbar3. If you remove it from toolbar3, it would show up only once.

// Define toolbar buttons. See list of toolbar buttons here: https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
toolbar1: "formatselect fontsizeselect | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent | superscript subscript charmap | removeformat fullscreen",
toolbar2: "forecolor backcolor | link anchor | blockquote hr image media table | pastetext paste | customcodesample code",
toolbar3: "",
Carl

PHP Programmer

interactivetools.com

By dmn - October 5, 2020

Thanks Carfl couldn't see the forest for the trees.