bug fix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user