@zipify/wysiwyg 1.0.0-dev.83 → 1.0.0-dev.86
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 +19 -18
- package/lib/composables/useToolbar.js +22 -18
- package/package.json +1 -1
package/dist/wysiwyg.mjs
CHANGED
|
@@ -22828,26 +22828,27 @@ function useToolbar({ wrapperRef, offsets, isActiveRef }) {
|
|
|
22828
22828
|
const wrapperEl = useElementRef(wrapperRef);
|
|
22829
22829
|
let popper2;
|
|
22830
22830
|
function mount(element) {
|
|
22831
|
+
const modifiers2 = [
|
|
22832
|
+
{
|
|
22833
|
+
name: "offset",
|
|
22834
|
+
options: { offset: offsets }
|
|
22835
|
+
},
|
|
22836
|
+
{
|
|
22837
|
+
name: "preventOverflow",
|
|
22838
|
+
options: {
|
|
22839
|
+
altAxis: true,
|
|
22840
|
+
padding: 2
|
|
22841
|
+
}
|
|
22842
|
+
},
|
|
22843
|
+
{
|
|
22844
|
+
name: "flip",
|
|
22845
|
+
options: { boundary: "document" }
|
|
22846
|
+
}
|
|
22847
|
+
];
|
|
22848
|
+
console.log(modifiers2, ContextWindow);
|
|
22831
22849
|
popper2 = createPopper(wrapperEl.value, element, {
|
|
22832
22850
|
placement: "top-start",
|
|
22833
|
-
modifiers:
|
|
22834
|
-
{
|
|
22835
|
-
name: "offset",
|
|
22836
|
-
options: { offset: offsets }
|
|
22837
|
-
},
|
|
22838
|
-
{
|
|
22839
|
-
name: "preventOverflow",
|
|
22840
|
-
options: {
|
|
22841
|
-
altAxis: true,
|
|
22842
|
-
padding: 2,
|
|
22843
|
-
boundary: ContextWindow.window
|
|
22844
|
-
}
|
|
22845
|
-
},
|
|
22846
|
-
{
|
|
22847
|
-
name: "flip",
|
|
22848
|
-
options: { boundary: ContextWindow.document }
|
|
22849
|
-
}
|
|
22850
|
-
]
|
|
22851
|
+
modifiers: modifiers2
|
|
22851
22852
|
});
|
|
22852
22853
|
}
|
|
22853
22854
|
const update = () => popper2 == null ? void 0 : popper2.update();
|
|
@@ -7,26 +7,30 @@ export function useToolbar({ wrapperRef, offsets, isActiveRef }) {
|
|
|
7
7
|
let popper;
|
|
8
8
|
|
|
9
9
|
function mount(element) {
|
|
10
|
+
const modifiers = [
|
|
11
|
+
{
|
|
12
|
+
name: 'offset',
|
|
13
|
+
options: { offset: offsets }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'preventOverflow',
|
|
17
|
+
options: {
|
|
18
|
+
altAxis: true,
|
|
19
|
+
padding: 2
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'flip',
|
|
24
|
+
options: { boundary: 'document' }
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line no-console
|
|
29
|
+
console.log(modifiers, ContextWindow);
|
|
30
|
+
|
|
10
31
|
popper = createPopper(wrapperEl.value, element, {
|
|
11
32
|
placement: 'top-start',
|
|
12
|
-
modifiers
|
|
13
|
-
{
|
|
14
|
-
name: 'offset',
|
|
15
|
-
options: { offset: offsets }
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: 'preventOverflow',
|
|
19
|
-
options: {
|
|
20
|
-
altAxis: true,
|
|
21
|
-
padding: 2,
|
|
22
|
-
boundary: ContextWindow.window
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'flip',
|
|
27
|
-
options: { boundary: ContextWindow.document }
|
|
28
|
-
}
|
|
29
|
-
]
|
|
33
|
+
modifiers
|
|
30
34
|
});
|
|
31
35
|
}
|
|
32
36
|
|