editor: added onChange event