This commit is contained in:
or-else
2017-08-18 11:20:20 -07:00
parent 5c74be339a
commit fd8c58e837
+2 -2
View File
@@ -25,7 +25,7 @@ Sample JSON representation of the text above:
"blocks":[ "blocks":[
{ {
"txt":"this is bold, code, italic and deleted.", "txt":"this is bold, code, italic and deleted.",
"fmt":[ "fmt":[
{ {
"at":8, "at":8,
"len":4, "len":4,
@@ -516,7 +516,7 @@ Sample JSON representation of the text above:
*/ */
toPlainText: function(content) { toPlainText: function(content) {
var {blocks} = content; var {blocks} = content;
var text = blocks[0].text; var text = blocks[0].txt;
for (var i = 1; i < blocks.length; i++) { for (var i = 1; i < blocks.length; i++) {
text += "\n" + blocks[i].txt; text += "\n" + blocks[i].txt;
} }