1 Jun 2023 |
adonis | when i edit and save i get this error 🥲 | 11:19:01 |
maxswjeon | How should we update block props in the render function? Is there a function? | 12:04:43 |
maxswjeon | Uncaught TypeError: Cannot read properties of null (reading 'id') occurs | 12:58:46 |
Matthew 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 |
maxswjeon | 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 |
maxswjeon | Block shortcut | 14:46:02 |
| Moonys 334 joined the room. | 23:18:24 |
2 Jun 2023 |
| DumpyMcNoob joined the room. | 01:21:15 |
Yousef#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 |
Yousef#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 |
Yousef#4385 | Have a look at https://www.blocknotejs.org/docs/manipulating-blocks#updating-blocks | 10:33:26 |
| yykcool joined the room. | 19:19:19 |
| iandeo joined the room. | 23:56:07 |
3 Jun 2023 |
| raevilman joined the room. | 08:35:17 |
| Maxime Palmino joined the room. | 11:01:31 |
Maxime 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 |
maxswjeon | You can set an initialContent as a option of useBlockNote hook. | 12:40:56 |
Maxime Palmino | Thank you ! | 12:41:25 |
lucameneghetti | 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 |
lucameneghetti | thanks btw Yousef | 15:39:21 |
lucameneghetti | * 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 |
maxswjeon | 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 |
lucameneghetti | thanks a lot! | 18:15:01 |
maxswjeon | * 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 |
maxswjeon | 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 |
lucameneghetti | 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 |
| j3ff joined the room. | 19:16:42 |
| austinmccoy joined the room. | 19:33:08 |
4 Jun 2023 |
| DannyDoesDev joined the room. | 01:17:13 |
| enzotar joined the room. | 04:20:56 |