Function addEditorAction