@tiptap/vue-2 3.0.8 → 3.0.9
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/menus/index.cjs
CHANGED
|
@@ -1634,6 +1634,7 @@ var BubbleMenuView = class {
|
|
|
1634
1634
|
updateDelay = 250,
|
|
1635
1635
|
resizeDelay = 60,
|
|
1636
1636
|
shouldShow,
|
|
1637
|
+
appendTo,
|
|
1637
1638
|
options
|
|
1638
1639
|
}) {
|
|
1639
1640
|
this.preventHide = false;
|
|
@@ -1728,6 +1729,7 @@ var BubbleMenuView = class {
|
|
|
1728
1729
|
this.view = view;
|
|
1729
1730
|
this.updateDelay = updateDelay;
|
|
1730
1731
|
this.resizeDelay = resizeDelay;
|
|
1732
|
+
this.appendTo = appendTo;
|
|
1731
1733
|
this.floatingUIOptions = {
|
|
1732
1734
|
...this.floatingUIOptions,
|
|
1733
1735
|
...options
|
|
@@ -1853,13 +1855,13 @@ var BubbleMenuView = class {
|
|
|
1853
1855
|
return shouldShow;
|
|
1854
1856
|
}
|
|
1855
1857
|
show() {
|
|
1856
|
-
var _a;
|
|
1858
|
+
var _a, _b;
|
|
1857
1859
|
if (this.isVisible) {
|
|
1858
1860
|
return;
|
|
1859
1861
|
}
|
|
1860
1862
|
this.element.style.visibility = "visible";
|
|
1861
1863
|
this.element.style.opacity = "1";
|
|
1862
|
-
(_a = this.view.dom.parentElement) == null ? void 0 :
|
|
1864
|
+
(_b = (_a = this.appendTo) != null ? _a : this.view.dom.parentElement) == null ? void 0 : _b.appendChild(this.element);
|
|
1863
1865
|
if (this.floatingUIOptions.onShow) {
|
|
1864
1866
|
this.floatingUIOptions.onShow();
|
|
1865
1867
|
}
|
|
@@ -1902,6 +1904,7 @@ var BubbleMenu = import_core2.Extension.create({
|
|
|
1902
1904
|
element: null,
|
|
1903
1905
|
pluginKey: "bubbleMenu",
|
|
1904
1906
|
updateDelay: void 0,
|
|
1907
|
+
appendTo: void 0,
|
|
1905
1908
|
shouldShow: null
|
|
1906
1909
|
};
|
|
1907
1910
|
},
|
|
@@ -1916,6 +1919,7 @@ var BubbleMenu = import_core2.Extension.create({
|
|
|
1916
1919
|
element: this.options.element,
|
|
1917
1920
|
updateDelay: this.options.updateDelay,
|
|
1918
1921
|
options: this.options.options,
|
|
1922
|
+
appendTo: this.options.appendTo,
|
|
1919
1923
|
shouldShow: this.options.shouldShow
|
|
1920
1924
|
})
|
|
1921
1925
|
];
|