File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
packages/vue-quill/src/components Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,10 @@ export default defineComponent({
13
13
},
14
14
setup : () => {
15
15
const content = ref <Delta >(
16
- new Delta ([
17
- { insert: ' Gandalf' , attributes: { bold: true } },
18
- { insert: ' the ' },
19
- { insert: ' Grey' , attributes: { color: ' #ccc' } },
20
- ])
16
+ new Delta ()
21
17
)
22
18
23
19
return { content }
24
20
},
25
21
})
26
22
</script >
27
-
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export const QuillEditor = defineComponent({
186
186
}
187
187
188
188
const deltaHasValuesOtherThanRetain = ( delta : Delta ) : boolean => {
189
- return Object . values ( delta ) . some ( ( v ) => ! v . retain )
189
+ return Object . values ( delta . ops ) . some ( ( v ) => ! v . retain )
190
190
}
191
191
192
192
// eslint-disable-next-line vue/no-setup-props-destructure
You can’t perform that action at this time.
0 commit comments