Make editor functional
Now Edit/Preview works perfectly, even if there is no YAML