bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-07-30 02:34:08 +03:00
parent 7927cdf2ee
commit d6663bc4a2

View File

@ -89,7 +89,8 @@ var update_editor = function(){
.on('keyup', function(){
var to = Wiki.get($(this).attr('saveto') || '.').path
console.log('SAVING:', to)
Wiki.get(to).raw = $(this).text()
//Wiki.get(to).raw = $(this).text()
Wiki.get(to).raw = $(this)[0].innerText
})
// XXX do this live, but on a timeout after user input...
// XXX need to place the cursor in the same position...