how I made this editor
⌘/Ctrl + S to Save