getEditState

returns info about active editor object

object getEditState();
objectobject with editors state and info

Example

var editor = view.getEditState();

Details

If there are many active objects - returns info about last opened editor

Editor object

{
    node: html_node_of_editor,
    value: initial_value_of_editor
    config: configuration_of_editor
}

You can access all methods of editor through this object

//get value
var value = some.getEditState().getValue();
//set value
some.getEditState().setValue( new_value );
//set focus
some.getEditState().focus();
See also
Back to top