@bbl-digital/snorre 4.0.91 → 4.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js
CHANGED
@@ -35491,14 +35491,20 @@ to {top: 100vh;}
|
|
35491
35491
|
React.useEffect(() => {
|
35492
35492
|
if (quill && overrideValue !== undefined) {
|
35493
35493
|
if (quill.root.innerHTML !== overrideValue) {
|
35494
|
-
quill.
|
35494
|
+
const delta = quill.clipboard.convert({
|
35495
|
+
html: overrideValue
|
35496
|
+
});
|
35497
|
+
quill.setContents(delta);
|
35495
35498
|
}
|
35496
35499
|
}
|
35497
35500
|
}, [quill, overrideValue]);
|
35498
35501
|
React.useEffect(() => {
|
35499
35502
|
if (quill && initialValue !== undefined) {
|
35500
35503
|
if (quill.root.innerHTML !== initialValue) {
|
35501
|
-
quill.
|
35504
|
+
const delta = quill.clipboard.convert({
|
35505
|
+
html: initialValue
|
35506
|
+
});
|
35507
|
+
quill.setContents(delta);
|
35502
35508
|
}
|
35503
35509
|
}
|
35504
35510
|
}, [quill, initialValue]);
|
@@ -117,14 +117,20 @@ const QuillEditor = ({
|
|
117
117
|
useEffect(() => {
|
118
118
|
if (quill && overrideValue !== undefined) {
|
119
119
|
if (quill.root.innerHTML !== overrideValue) {
|
120
|
-
quill.
|
120
|
+
const delta = quill.clipboard.convert({
|
121
|
+
html: overrideValue
|
122
|
+
});
|
123
|
+
quill.setContents(delta);
|
121
124
|
}
|
122
125
|
}
|
123
126
|
}, [quill, overrideValue]);
|
124
127
|
useEffect(() => {
|
125
128
|
if (quill && initialValue !== undefined) {
|
126
129
|
if (quill.root.innerHTML !== initialValue) {
|
127
|
-
quill.
|
130
|
+
const delta = quill.clipboard.convert({
|
131
|
+
html: initialValue
|
132
|
+
});
|
133
|
+
quill.setContents(delta);
|
128
134
|
}
|
129
135
|
}
|
130
136
|
}, [quill, initialValue]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAqC3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/index.tsx"],"names":[],"mappings":"AAGA,OAAO,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAqC3C,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0K3C,CAAA;AAED,eAAe,WAAW,CAAA"}
|
@@ -117,14 +117,20 @@ const QuillEditor = ({
|
|
117
117
|
useEffect(() => {
|
118
118
|
if (quill && overrideValue !== undefined) {
|
119
119
|
if (quill.root.innerHTML !== overrideValue) {
|
120
|
-
quill.
|
120
|
+
const delta = quill.clipboard.convert({
|
121
|
+
html: overrideValue
|
122
|
+
});
|
123
|
+
quill.setContents(delta);
|
121
124
|
}
|
122
125
|
}
|
123
126
|
}, [quill, overrideValue]);
|
124
127
|
useEffect(() => {
|
125
128
|
if (quill && initialValue !== undefined) {
|
126
129
|
if (quill.root.innerHTML !== initialValue) {
|
127
|
-
quill.
|
130
|
+
const delta = quill.clipboard.convert({
|
131
|
+
html: initialValue
|
132
|
+
});
|
133
|
+
quill.setContents(delta);
|
128
134
|
}
|
129
135
|
}
|
130
136
|
}, [quill, initialValue]);
|