Add value() function to get and set editor content

Fixes #3.