Description
This event is called before the TinyMCE edit control is created. Use this event to customize TinyMCE control. You can use this event to customize all TinyMCE instances in the project or you can use table and field parameters to fine-tune this control of any specific page and field.
Syntax
CreateTinyMCE(table, field, settings, proxy, pageObj)
Arguments
table
table name
field
table name
settings
TinyMCE control settings object. You can read more about available settings in the official TinyMCE documentation.
table
proxy object. Contains data passed from the server side.
table
Applies to pages
Add, Edit
Example
// enable browser-based spell check
settings.browser_spellcheck = true;
// set editor height
settings.height = 400;
// enable menu items
settings.menubar = 'file edit view';
// customize the toolbar
settings.toolbar = 'undo redo | styles | bold italic | link ';
tinymce.init( settings );
See also: