Customizing the WYSIWYG editor
Drupal core comes with the CKEditor 5 text editor by default. You can switch to something else if you want, but CKEditor is the editor most supported by the core and contrib modules.
Text formats
Which CKEditor widgets are available in the WYSIWYG editor and how they’re configured is managed by a Text format.
A Text format is used to choose the following:
- Which WYSIWYG editor to use when entering a formatted text, and its configuration
- How the text entered in the WYSIWYG editor is translated before it is printed on a page
For security reasons, you must never trust input from users, even if they come from your organization. A properly configured Text format makes sure that this doesn’t happen.
Text formats are available to users based on their roles on the website, and you should give more power to trusted people only.
Note
If a user has permission to edit nodes created from a content type, but doesn&...