Assign @editorSession.getValue() to local variable