Why don't I see the colorbutton plugin in CKEditor?
-
28-02-2021 - |
Question
I installed the Colorbutton module and its composer dependencies:
"drupal/colorbutton": "^1",
"drupal-ckeditor-libraries-group/colorbutton": "^4.14",
"drupal-ckeditor-libraries-group/panelbutton": "^4.14",
I then enabled the module, configured the Basic HTML text form, and added the new buttons to my toolbar.
However, I don't see the buttons as an authenticated user (admin or regular authenticated user).
I rebuilt the Drupal cache, cleared the browser cache... Still the same problem.
How do I display the color buttons?
La solution
By default, Basic HTML strips <span style>
attributes, which CKEditor uses to apply color.
On /admin/config/content/formats/manage/basic_html
, if you add <span style>
to the Allowed HTML Tags, the buttons will be displayed.
Licencié sous: CC-BY-SA avec attribution
Non affilié à drupal.stackexchange