@monolith-forensics/monolith-ui 1.1.52 → 1.1.54
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,8 @@ 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
|
+
console.log(selectedText);
|
|
244
245
|
let top = (rect === null || rect === void 0 ? void 0 : rect.top) ? rect.top - 50 : 0;
|
|
245
246
|
if (top < 10) {
|
|
246
247
|
top = 10; // add some padding
|