@zipify/wysiwyg 1.0.0-dev.51 → 1.0.0-dev.52

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.
@@ -38,7 +38,7 @@ export const Link = Base.extend({
38
38
  if (!href.startsWith('#')) return LinkDestinations.URL;
39
39
 
40
40
  const id = href.replace('#', '');
41
- const block = this.options.pageBlocks.value.find((block) => block.id === parseInt(id));
41
+ const block = this.options.pageBlocksRef.value.find((block) => block.id === parseInt(id));
42
42
 
43
43
  return block ? LinkDestinations.BLOCK : LinkDestinations.URL;
44
44
  }
@@ -12,7 +12,7 @@ function createEditor({ content }) {
12
12
  Link.configure({
13
13
  preset: 'link',
14
14
  baseClass: 'zw ts-',
15
- pageBlocks: ref([{ id: 987654 }])
15
+ pageBlocksRef: ref([{ id: 987654 }])
16
16
  })
17
17
  )
18
18
  });
@@ -22,7 +22,7 @@ export function buildExtensions(options) {
22
22
 
23
23
  return buildCoreExtensions(options).concat([
24
24
  StylePreset.configure({
25
- presets: options.presetsRef,
25
+ presetsRef: options.presetsRef,
26
26
  defaultId: options.defaultPresetId,
27
27
  baseClass: options.basePresetClass,
28
28
  makeVariable: options.makePresetVariable
@@ -31,7 +31,7 @@ export function buildExtensions(options) {
31
31
  baseClass: options.baseListClass
32
32
  }),
33
33
  DeviceManager.configure({
34
- device: options.deviceRef
34
+ deviceRef: options.deviceRef
35
35
  }),
36
36
  FontFamily.configure({
37
37
  fonts: options.fonts,
@@ -56,7 +56,7 @@ export function buildExtensions(options) {
56
56
  Link.configure({
57
57
  preset: linkPreset,
58
58
  basePresetClass: options.basePresetClass,
59
- pageBlocks: options.pageBlocksRef
59
+ pageBlocksRef: options.pageBlocksRef
60
60
  })
61
61
  ]);
62
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.0.0-dev.51",
3
+ "version": "1.0.0-dev.52",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "repository": {