File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
src/frontend/apps/impress/src/features/docs/doc-editor Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ and this project adheres to
16
16
17
17
- 🧑💻(docker): add .next to .dockerignore #1055
18
18
19
+ ### Fixed
20
+
21
+ 🐛(frontend) table of content disappearing #982
22
+
23
+
19
24
## [ 3.3.0] - 2025-05-06
20
25
21
26
### Added
Original file line number Diff line number Diff line change @@ -178,7 +178,6 @@ export const BlockNoteEditorVersion = ({
178
178
initialContent,
179
179
} : BlockNoteEditorVersionProps ) => {
180
180
const readOnly = true ;
181
- const { setEditor } = useEditorStore ( ) ;
182
181
const editor = useCreateBlockNote (
183
182
{
184
183
collaboration : {
@@ -193,15 +192,6 @@ export const BlockNoteEditorVersion = ({
193
192
} ,
194
193
[ initialContent ] ,
195
194
) ;
196
- useHeadings ( editor ) ;
197
-
198
- useEffect ( ( ) => {
199
- setEditor ( editor ) ;
200
-
201
- return ( ) => {
202
- setEditor ( undefined ) ;
203
- } ;
204
- } , [ setEditor , editor ] ) ;
205
195
206
196
return (
207
197
< 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