@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.
package/lib/extensions/Link.js
CHANGED
|
@@ -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.
|
|
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
|
}
|
package/lib/extensions/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export function buildExtensions(options) {
|
|
|
22
22
|
|
|
23
23
|
return buildCoreExtensions(options).concat([
|
|
24
24
|
StylePreset.configure({
|
|
25
|
-
|
|
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
|
-
|
|
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
|
-
|
|
59
|
+
pageBlocksRef: options.pageBlocksRef
|
|
60
60
|
})
|
|
61
61
|
]);
|
|
62
62
|
}
|