Fixed text editor

- removed bug preventing opening of files
- css border for toolbar is reset after saving.
channel is not created early when opening file.