Fix text editor to work with sharing overview as well

Now using OCA.Files.fileActions to register actions.

Use the given fileList/fileActions instance instead of the global one
when opening the editor.