Note: When a script is opened whose "Read-only" attribute is set, then the editor is also automatically set as read-only.