@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
  }));
@@ -4,6 +4,7 @@ exports[`life cycle should emit changes 1`] = `
4
4
  Array [
5
5
  Array [
6
6
  Object {
7
+ "__wswg__": true,
7
8
  "content": Array [
8
9
  Object {
9
10
  "content": Array [
@@ -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
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.0.0-dev.74",
3
+ "version": "1.0.0-dev.75",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "repository": {