Added possibility to deactive the editor e.g. from controller