@zipify/wysiwyg 1.0.0-dev.74 → 1.0.0-dev.75
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/wysiwyg.mjs
CHANGED
|
@@ -22776,7 +22776,7 @@ const Toolbar = /* @__PURE__ */ function() {
|
|
|
22776
22776
|
function useEditor({ content, onChange, extensions: extensions2, isReadonlyRef }) {
|
|
22777
22777
|
const editor = reactive(new Editor({
|
|
22778
22778
|
content: ContentNormalizer.normalize(content.value),
|
|
22779
|
-
onUpdate: () => onChange(editor.getJSON()),
|
|
22779
|
+
onUpdate: () => onChange({ ...editor.getJSON(), __wswg__: true }),
|
|
22780
22780
|
extensions: extensions2,
|
|
22781
22781
|
injectCSS: false
|
|
22782
22782
|
}));
|
|
@@ -5,7 +5,7 @@ import { ContentNormalizer } from '../services';
|
|
|
5
5
|
export function useEditor({ content, onChange, extensions, isReadonlyRef }) {
|
|
6
6
|
const editor = reactive(new Editor({
|
|
7
7
|
content: ContentNormalizer.normalize(content.value),
|
|
8
|
-
onUpdate: () => onChange(editor.getJSON()),
|
|
8
|
+
onUpdate: () => onChange({ ...editor.getJSON(), __wswg__: true }),
|
|
9
9
|
extensions,
|
|
10
10
|
injectCSS: false
|
|
11
11
|
}));
|