Sign in

Allow the scripts and configurations in tinymce editor

  • This topic has 6 replies, 4 voices, and was last updated 3 years, 1 month ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #675
    Avatar photogpsblues


    I follow these instructions without results

    1. Add “extensions” section in config.json at the end of file
      `  “name”: “QF”,`
      `  …`
      `  “extensions”: {`
      `    “postEditorConfigOverride”: true,`
      `    “postEditorCustomScript”: true`
      `  }`
    2. Create tinymce.override.json file in folder_override template
    3. Add options in tinymce.override.json file
      `  “toolbar2”: “”,`
      `  “valid_elements”: “*[*]”`

    Toolbar 2 is not removed.
    All scripts are converted in

    Thank you

    Avatar photoTomasz Dziuda


    To disable toolbar you have to set it to false instead of empty string.

    Regarding script conversion – it is an internal TinyMCE mechanism which cannot be overrided even with valid_elements option.

    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    Avatar photogpsblues

    Hi Tomasz ,

    thank you very much.

    Alternatively I can use an external js script:


    or, custom HTML element.

    Avatar photo[anonymous]


    I tried the same process, and the toolbar2 in post editor is not removed.
    I use Publii on linux, do I have to refresh something ?

    in Publii/testsite/input/themes/simple/config.json
    juste before “customElements”, I added :

    `”extensions”: {`
    `”postEditorConfigOverride”: true,`
    `”postEditorCustomScript”: true`

    In same folder
    I created tinymce.override.json, I added only :

    `”toolbar2″: “false”,`
    `”extended_valid_elements”: “*[*]”`


    Avatar photogpsblues

    Hi @anselmyst


    `”toolbar2″: false

    It works!

    Avatar photo[anonymous]


    It doesn’t work 🙁

    Do you agree that it’s supposed to remove the black toolbar ?


    Avatar photobtrem

    Like others, I am having trouble overriding TinyMCE. I’m using an override of the blank theme. In site/input/themes/blank-override I have the following config.json:

        "name": "Blank",
        "version": "",
        "...": "edited for brevity",
        "extensions": {
            "postEditorConfigOverride": true,
            "postEditorCustomScript": true

    and the following tinymce.override.json:

        "toolbar1": "styleselect formatselect searchreplace removeformat undo redo",
        "toolbar2": "image bullist numlist bold italic link unlink media table"

    When I load Publii, the standard toolbars show up: publii-screenshot

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.