You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1、thanks for reply
2、Not only in terms of multi-user collaboration, but also from a code perspective, automatically inserting text can be quite useful. For example, when a block's content consists of multiple texts, if the cursor is placed within a particular text, applying the style of that text and automatically adding more text (through code) can be achieved.
3、Will this be added to the roadmap in the future?
Also in need of this feature! 💯 At the moment, with updateBlock it seems easy enough to insertText on the start or end of the current block, but not that straightforward to implement when your cursor is in the middle of the text and the text should be inserted on that position since I don't think the index of the cursor within the current text content is returned somewhere (or I missed that).
Also already thanks for the great work done on the project so far 🙌
Activity
YousefED commentedon Jun 20, 2023
At this moment there is only support for
updateBlockto update an entire block. You can use it to change the text in thecontentfield of a block.I think inserting text at a particular point is a valid request, especially because it will work better with multi-user collaboration
tsl1127 commentedon Jun 20, 2023
1、thanks for reply
2、Not only in terms of multi-user collaboration, but also from a code perspective, automatically inserting text can be quite useful. For example, when a block's content consists of multiple texts, if the cursor is placed within a particular text, applying the style of that text and automatically adding more text (through code) can be achieved.
3、Will this be added to the roadmap in the future?
YousefED commentedon Jun 20, 2023
@tsl1127 Yes, we definitely want to add this to BlockNote. Thanks for extra details in (2)
WoetDev commentedon Jan 13, 2024
Also in need of this feature! 💯 At the moment, with
updateBlockit seems easy enough toinsertTexton the start or end of the current block, but not that straightforward to implement when your cursor is in the middle of the text and the text should be inserted on that position since I don't think the index of the cursor within the current text content is returned somewhere (or I missed that).Also already thanks for the great work done on the project so far 🙌
YousefED commentedon Mar 5, 2024
see https://www.blocknotejs.org/docs/editor-api/manipulating-inline-content#inserting-inline-content