{hero}

initEditor

Since: Editor 1.9.1

Editor instance created.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

Generally you don't need to know programmatically when a new Editor instance is created, since you use new DataTable.Editor(...); to create a new instance and any dependent code can follow. However, it can be useful to apply common actions, event handlers or even for testing to multiple Editor instances, and this event provides that ability.

Note that unlike the other Editor events, do not listen for it on the Editor instance (since you don't know what that is!), but rather on the document element. The Editor instance that was created is passed in as the second parameter to the callback function.