Skip to content

getEditState

returns info about active editor object

function getEditState(): WebixEditorObject

WebixEditorObject object with editors state and info

var editor = view.getEditState();

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

{
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();

Articles

API