extracted editor setup from org-input