Called without argument, this function returns a text editor object of class QLuaEditor. Otherwise it returns an editor for the file filename, possibly creating a new editor window. It pops a message box and returns nil if the file filename does not exist or cannot be loaded.

Open editors have object names of the form =editor=_n_ and are accessible by name in the qt package.