!lVQrdwcvexYvHwvLkb:matrix.org

BlockNote library

379 Members
Discussions about the BlockNote open source project (https://github.com/yousefed/blocknote): a "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.3 Servers

Load older messages


SenderMessageTime
1 Jun 2023
@_discord_1113306193893543966:t2bot.ioadonis when i edit and save i get this error 🥲 11:19:01
@_discord_390564217729581056:t2bot.iomaxswjeon How should we update block props in the render function? Is there a function? 12:04:43
@_discord_390564217729581056:t2bot.iomaxswjeon Uncaught TypeError: Cannot read properties of null (reading 'id') occurs 12:58:46
@_discord_1077267996201996328:t2bot.ioMatthew Lipski Thanks for this! What's happening is the editor starts with an empty paragraph block and tries to remove it before it's assigned an ID, which is most likely to do with hot-reloading of the page. You said you were also getting the error when editing, do you mean editing the code or typing in the markdown input box? 13:39:44
@_discord_390564217729581056:t2bot.iomaxswjeon Is there a way to map a specific string to be a block? such as three backticks create a code block or three dashes (---) create a horizontal ruler? 14:34:43
@_discord_390564217729581056:t2bot.iomaxswjeon Block shortcut 14:46:02
@_discord_804734284149293146:t2bot.ioMoonys 334 joined the room.23:18:24
2 Jun 2023
@_discord_138856202070261760:t2bot.ioDumpyMcNoob joined the room.01:21:15
@_discord_763474426456834049:t2bot.ioYousef#4385 Hi Luca! We don't have a demo for this yet, but I think we should consider adding one. What would you like to customized? 10:32:52
@_discord_763474426456834049:t2bot.ioYousef#4385 * Hi Luca! We don't have a demo for this yet, but I think we should consider adding one. What would you like to customize? 10:32:56
@_discord_763474426456834049:t2bot.ioYousef#4385 Have a look at https://www.blocknotejs.org/docs/manipulating-blocks#updating-blocks 10:33:26
@_discord_1114271950655733760:t2bot.ioyykcool joined the room.19:19:19
@_discord_872279941482422353:t2bot.ioiandeo joined the room.23:56:07
3 Jun 2023
@_discord_554585602365063169:t2bot.ioraevilman joined the room.08:35:17
@_discord_362033520589275138:t2bot.ioMaxime Palmino joined the room.11:01:31
@_discord_362033520589275138:t2bot.ioMaxime Palmino Hey guys, I have a question. I tried blocknote for the first time today and I can't get around putting a string from my database into the block when page is loaded. I don't see any props pages ? 11:03:05
@_discord_390564217729581056:t2bot.iomaxswjeon You can set an initialContent as a option of useBlockNote hook. 12:40:56
@_discord_362033520589275138:t2bot.ioMaxime Palmino Thank you ! 12:41:25
@_discord_885415005569318924:t2bot.iolucameneghetti The way the blocks are built. I'm basically creating a text editor that uses blocks but doesn't use any rtf features. I'd only need the drag and drop part, no / command nor various text types (just paragraphs. 15:39:11
@_discord_885415005569318924:t2bot.iolucameneghetti thanks btw Yousef 15:39:21
@_discord_885415005569318924:t2bot.iolucameneghetti * I'd need to style the blocks themselves. I'm basically creating a text editor that uses blocks but doesn't use any rtf features. I'd only need the drag and drop part, no / command nor various text types (just paragraphs. 15:41:26
@_discord_390564217729581056:t2bot.iomaxswjeon You can
1. Remove blocks by not importing default blocks but paragraph block tto blockSchema
2. Create a uiFactory to remove the left slash menu
3. Remove all slash commands by passing empty record({}) to the slashCommands
18:14:25
@_discord_885415005569318924:t2bot.iolucameneghetti thanks a lot! 18:15:01
@_discord_390564217729581056:t2bot.iomaxswjeon * You can
1. Remove blocks by not importing default blocks but paragraph block to blockSchema
2. Create a uiFactory to remove the left slash menu
3. Remove all slash commands by passing empty record({}) to the slashCommands
18:15:07
@_discord_390564217729581056:t2bot.iomaxswjeon lucameneghetti The tailwind part is a little complicated, might use postcss and @apply instructions to apply the custom style? Or you can create custom paragraphBlock and customize the render function. 18:17:27
@_discord_885415005569318924:t2bot.iolucameneghetti customizing isn't a super big priority right now fortunately, but in case I'd do it with postcss. seems the most practical option. 18:18:58
@_discord_1114633588458139678:t2bot.ioj3ff joined the room.19:16:42
@_discord_1113895233189593170:t2bot.ioaustinmccoy joined the room.19:33:08
4 Jun 2023
@_discord_507180284803022859:t2bot.ioDannyDoesDev joined the room.01:17:13
@_discord_497163397234819075:t2bot.ioenzotar joined the room.04:20:56

There are no newer messages yet.


Back to Room ListRoom Version: 9