Setup editor only when needed