craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 635 forks source link

Craft3: Redactor html button is missing #1812

Closed nternetinspired closed 7 years ago

nternetinspired commented 7 years ago

Description

A rich-text field using the ‘Standard’ Redactor config should display the html button <> in the Redactor toolbar; it doesn't.

Steps to reproduce

  1. Add a rich-text field.
  2. Set it's Redactor config field to ‘Standard’.
  3. Check out the field in an entry.

Expected result:

screen shot 2017-07-05 at 10 36 53

Actual result:

screen shot 2017-07-05 at 10 38 55

Quick fix…

I was able to get the expected behaviour by changing config/redactor/Standard.json, removing html from the buttons list and adding source to the plugin list, i.e:

{
"buttons"["html","formatting","bold","italic","unorderedlist","orderedlist","link","image","video"],"plugins":["fullscreen","video"],
"toolbarFixed": true
}

to:

{
"buttons": ["formatting","bold","italic","unorderedlist","orderedlist","link","image","video"],"plugins":["fullscreen","source","video"],
"toolbarFixed": true
}

Additional info

brandonkelly commented 7 years ago

Thanks! FFR please post issues with the base project files in the craftcms/craft repo.

nternetinspired commented 7 years ago

Sorry @brandonkelly, my bad. Totally missed that this was the wrong repo, but that does explain why I couldn't find the correct file to do a PR on!