Move performance tweak into EditorManager.createInlineEditorForDocument