Global Configuration
You can define a global configuration for all WYSIWYG editors used in data objects and documents. Below is an example configuration:
pimcore_studio_ui:
wysiwyg:
defaultEditorConfig:
dataObject: # Replace this with 'document' for documents
modules:
toolbar:
container:
- [{ header: [1, 2, 3, 4, 5, 6, false] }]
Explanation
This configuration customizes the header selection for all data objects when using the Quill editor.
- Header Dropdown: The
headerarray defines a dropdown in the toolbar for selecting header levels (<h1>to<h6>). - Normal Text Option: The
falsevalue allows reverting to normal text (no header formatting). - Applicability: Replace
dataObjectwithdocumentto apply the configuration to documents instead of data objects.
Note: The configuration under
dataObjectis editor-specific. Ensure you adjust it according to the requirements of your editor.