TinyMCE WSYIWYG editor
General
TinyMCE bundle provides TineMCE as WYSIWYG-editor. Similar to Textarea and Input you can use the WYSIWYG editable in the templates to provide rich-text editing.
Installation
See installation
Configuration
Available configuration options can be found here: config options
Cloud Configuration
Default Configuration
convert_unsafe_embeds is set to true by default.
This means that unsafe elements like <embed> or <object> will be converted to more restrictive alternatives.
For more details please take a look at the TinyMCE documentation.
Examples
Basic usage
wysiwyg helper doesn't require any additional configuration options.
The following code add a second toolbar.
<section id="marked-content">
{{ pimcore_wysiwyg("specialContent", {
toolbar2: 'forecolor | h1 | h2'
})
}}
</section>
Custom configuration for TinyMCE
The complete list of configuration options you can find in the TinyMCE toolbar documentation.
The WYSIWYG editable allows us to specify the toolbar.
If you have to limit styling options (for example only basic styles like <b> tag and lists would be allowed), just use toolbar1 option.
<section id="marked-content">
{{ pimcore_wysiwyg("specialContent", {
toolbar1: 'forecolor | h1 | h2'
})
}}
</section>
Now the user can use only the limited toolbar.
Global Configuration
See studio-ui-bundle See admin-ui-classic-bundle
License
Please note that this bundle includes an OEM-licensed version of TinyMCE (installed via Composer), which is exclusively tied to the Pimcore Professional and Enterprise Edition. Please also see LICENSE.md for further details.