@monolith-forensics/monolith-ui 1.1.52 → 1.1.53
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.
|
@@ -240,7 +240,7 @@ const BubbleMenu = ({ editor, rect, open, onOpen, customMenuItems = [], }) => {
|
|
|
240
240
|
}, [open, onOpen, elements.floating]);
|
|
241
241
|
const elementWidth = ((_a = elements.floating) === null || _a === void 0 ? void 0 : _a.offsetWidth) || 0;
|
|
242
242
|
const { from, to } = editor.state.selection;
|
|
243
|
-
const selectedText = editor.state.doc.textBetween(from, to, "\n");
|
|
243
|
+
const selectedText = editor.state.doc.textBetween(from, to, "\n", "\n");
|
|
244
244
|
let top = (rect === null || rect === void 0 ? void 0 : rect.top) ? rect.top - 50 : 0;
|
|
245
245
|
if (top < 10) {
|
|
246
246
|
top = 10; // add some padding
|