From fd8c58e83775af5524fd39f9f1e8267c3319fa49 Mon Sep 17 00:00:00 2001 From: or-else Date: Fri, 18 Aug 2017 11:20:20 -0700 Subject: [PATCH] bug fix --- drafty.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drafty.js b/drafty.js index 6bcd4339..011e95e9 100644 --- a/drafty.js +++ b/drafty.js @@ -25,7 +25,7 @@ Sample JSON representation of the text above: "blocks":[ { "txt":"this is bold, code, italic and deleted.", - "fmt":[ + "fmt":[ { "at":8, "len":4, @@ -516,7 +516,7 @@ Sample JSON representation of the text above: */ toPlainText: function(content) { var {blocks} = content; - var text = blocks[0].text; + var text = blocks[0].txt; for (var i = 1; i < blocks.length; i++) { text += "\n" + blocks[i].txt; }