Mini editor (Part 6)
This is part six of a seven part series on how to make a WYSIWYG structure editor using javascript, jquery, erlang and couchDB.
- Part1 - toggling content editable
- Part2 - Adding some style
- Part3 - Adding editing buttons
- Part4 - A seamless structure editor
- Part5 - All the buttons
- Part6 - Storing the results forever
- Part7 - Integration with couchdb
Storing the results forever
In javascript you cannot store anything locally (apart from cookies). So to store the results of editing we need a backend-server that can store the results.
To implement this I have made a simple back-end web server in Erlang, the code can be found at git://github.com/joearms/contentEditableDemo.git
If you are running a live system you should be able to click on the links in the sidebar to fetch a bog entry than use the store button to save the blog. If you are not serving this from an Erlang server then the save operation will fail.