Read-only fixes to CodeEditorComponent