File tree 3 files changed +5
-12
lines changed
src/frontend/apps/impress/src/features/docs/doc-editor 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,14 @@ and this project adheres to
25
25
- ⬆️(docker) upgrade backend image to python 3.13 #973
26
26
- ⬆️(docker) upgrade node images to alpine 3.21
27
27
28
-
29
28
### Removed
30
29
31
30
- 🔥(back) remove footer endpoint
32
31
32
+ ### Fixed
33
+
34
+ 🐛(frontend) table of content disappearing #982
35
+
33
36
## [ 3.2.1] - 2025-05-06
34
37
35
38
## Fixed
Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ export const BlockNoteEditorVersion = ({
176
176
initialContent,
177
177
} : BlockNoteEditorVersionProps ) => {
178
178
const readOnly = true ;
179
- const { setEditor } = useEditorStore ( ) ;
180
179
const editor = useCreateBlockNote (
181
180
{
182
181
collaboration : {
@@ -191,15 +190,6 @@ export const BlockNoteEditorVersion = ({
191
190
} ,
192
191
[ initialContent ] ,
193
192
) ;
194
- useHeadings ( editor ) ;
195
-
196
- useEffect ( ( ) => {
197
- setEditor ( editor ) ;
198
-
199
- return ( ) => {
200
- setEditor ( undefined ) ;
201
- } ;
202
- } , [ setEditor , editor ] ) ;
203
193
204
194
return (
205
195
< Box $css = { cssEditor ( readOnly ) } className = "--docs--editor-container" >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const useHeadings = (editor: DocsBlockNoteEditor) => {
9
9
useEffect ( ( ) => {
10
10
setHeadings ( editor ) ;
11
11
12
- editor ?. onEditorContentChange ( ( ) => {
12
+ editor ?. onChange ( ( ) => {
13
13
setHeadings ( editor ) ;
14
14
} ) ;
15
15
You can’t perform that action at this time.
0 commit comments