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({
1313 },
1414 setup : () => {
1515 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 ()
2117 )
2218
2319 return { content }
2420 },
2521})
2622 </script >
27-
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export const QuillEditor = defineComponent({
186186 }
187187
188188 const deltaHasValuesOtherThanRetain = ( delta : Delta ) : boolean => {
189- return Object . values ( delta ) . some ( ( v ) => ! v . retain )
189+ return Object . values ( delta . ops ) . some ( ( v ) => ! v . retain )
190190 }
191191
192192 // eslint-disable-next-line vue/no-setup-props-destructure
You can’t perform that action at this time.
0 commit comments