Use getActiveEditor instead of getCurrentDocument to enable inline editing