             typ = editor_name
         @project_page.project_activity({event:'open', filename:filename, type:typ})
 
-        # Some of the editors below might get the content later and will call @file_options again then.
+        # Some of the editors below might get the content later and will
+        # call @file_options again then.
         switch editor_name
             # TODO: JSON, since I have that jsoneditor plugin...
             # codemirror is the default...
             when 'codemirror', undefined
-                if opts.content? and extra_opts.read_only
+                if extra_opts.public_access
                     # This is used only for public access to files
                     editor = new CodeMirrorEditor(@, filename, opts.content, extra_opts)
                     if filename_extension(filename) == 'sagews'

                            else
                                content = data
                                extra_opts.read_only = true
                                c()
                else
                    c()

            @element.css(left:0, top:@editor.editor_top_position(), position:'fixed')   # TODO: this is hack-ish; needs to be redone!
            @console.focus(true)




class Image extends FileEditor
