demos: fix vmodel demo when using JSON data
This commit is contained in:
@@ -30,7 +30,7 @@ export default {
|
|||||||
const isSame = this.editor.getHTML() === value
|
const isSame = this.editor.getHTML() === value
|
||||||
|
|
||||||
// JSON
|
// JSON
|
||||||
// const isSame = this.editor.getJSON().toString() === value.toString()
|
// const isSame = JSON.stringify(this.editor.getJSON()) === JSON.stringify(value)
|
||||||
|
|
||||||
if (isSame) {
|
if (isSame) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user