Looking at
the documentation[
^], the underlying element's value will be updated when the form is submitted.
If you want to get the current value, you need to call the
save
method first.
document.body.onkeyup = function(){
htmleditor.save();
console.debug(html.value);
...
};