Added listener for editor pane.