Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Global events

JavaScript Create TinyMCE

Scroll Prev Next More

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

RunnerPage object

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:

RichTextEditor controls

RunnerPage object

Proxy object

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software