diff --git a/polymer-quill.html b/polymer-quill.html index 3918b67..fdf2a16 100644 --- a/polymer-quill.html +++ b/polymer-quill.html @@ -1,4 +1,3 @@ - @@ -86,22 +85,21 @@
undefined
" ) { if (this.storeAs === 'delta') { - this.quill.setContents(JSON.parse(this.content),'api'); + if (Array.isArray(this.content)) { + this.quill.setContents(this.content,'api'); + } else { + this.quill.setContents(JSON.parse(this.content),'api'); + } } else { // HTML this.quill.root.innerHTML = this.content; } @@ -510,14 +515,20 @@