TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.

Home Page:https://www.blocknotejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

editor.getSelectedText() - Missing whitespace between selected text segments crossing blocks boundaries

keotic opened this issue · comments

Describe the bug
Selected text across blocks is truncated without spaces when the selection is across blocks

To Reproduce
Write 2 Paragraph blocks - select their text and see the resulting text from editor.getSelectedText()

The function should return an array of selected text segments by blocks.