Redactor: Can't get source button to show up after latest update

Created on 4 May 2018  ·  2Comments  ·  Source: craftcms/redactor

With the update, I can't use the source plugin anymore, but I can't seem to get the source button to show up on my toolbar.

This is my current Standard.json config:

{
    "buttons": [
        "source",
        "formatting",
        "bold",
        "italic",
        "unorderedlist",
        "orderedlist",
        "link",
        "file"
    ],
    "plugins": [
        "fullscreen"
    ],
    "pastePlainText": true,
    "source": true,
    "formatting": [
        "p",
        "h3",
        "h4",
        "h5"
    ]
}

Toolbar looks like this:
screenshot-safs local-2018 05 03-21-39-32

Previous config, that worked:

{
  "buttons": ["formatting", "bold", "italic", "unorderedlist", "orderedlist", "link"],
  "plugins": ["source", "fullscreen"],
  "pastePlainText": true,
  "formatting": ["p", "h3", "h4", "h5"]
}

Is anyone else having this problem?

Most helpful comment

SOLVED: The button is called html. Whoops. Not deleting the issue in case someone else comes here for the same reason.

All 2 comments

SOLVED: The button is called html. Whoops. Not deleting the issue in case someone else comes here for the same reason.

Hello, i think you should udpate the doc or the Readme because adding "html" buttons only works if there is "source" = true.

That's not explained anywhere except reading all tickets in here. (i read all documentation both your Readme and the Redactor doc and could not find the proper solution)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diluno picture diluno  ·  3Comments

davist11 picture davist11  ·  13Comments

sidm1983 picture sidm1983  ·  7Comments

sandissauka picture sandissauka  ·  16Comments

lindseydiloreto picture lindseydiloreto  ·  3Comments