- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 157字
- 2025-04-04 18:20:50
How to do it...
Let's create a new text format with a custom CKEditor WYSIWYG configuration:
- Visit Configuration from the administrative toolbar and head to Text formats and editors under the CONTENT AUTHORING heading.
- Click on Add text format to begin creating the new text format:

- Enter a name for the text format, such as editor format.
- Select which roles have access to this format--this allows you to have granular control over what users can use when authoring content.
- Select CKEditor from the Text editor select list. The configuration form for CKEditor will then be loaded.
- You may now use an in-place editor to drag buttons onto the provided toolbar to configure your CKEditor toolbar:
- Select any of the Enabled filters you would like, except for Display any HTML as Plain text. That would be counter-intuitive to using a WYSIWYG editor!
- When satisfied, click on Save Configuration to save your configuration and create the text filter.