You should edit content by working on a local copy of the container.
It's best to use PHPStorm for editing the content. Simply open the folder
lxc-attach into the container and then you can run the command
docsServe to serve a live reloading copy on the containers local IP address and port 8000
This allows you to instantly see the results of your work as you are working on it. The IP address will be your local container IP address, so for example: