From d6663bc4a294928e80acd133bc6a11d900db1313 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 30 Jul 2016 02:34:08 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 299b6a1..05c734e 100755 --- a/index.html +++ b/index.html @@ -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...