TinyMCE
If you want to customize TinyMCE within Voyager, you can do so by adding a additional JS file to your config.
In this file you have to define a function like
1
function tinymce_init_callback(editor)
2
{
3
//...
4
}
Copied!
If you need to manipulate TinyMCE before it was initialized, you can use
1
function tinymce_setup_callback(editor)
2
{
3
//...
4
}
Copied!
If you want to customize TinyMCE init configuration Options you can merge your custom options in BREAD details as follow:
1
{
2
"tinymceOptions" : {
3
"name": "value"
4
}
5
}
Copied!
If you want to use tinyMCE outside it's default template rich_text_box you'll need initialize it with:
1
tinymce.init(window.voyagerTinyMCE.getConfig());
Copied!
For all possible variables, functions and configuration Options please refer to the TinyMCE documentation.
Last modified 1mo ago
Export as PDF
Copy link