File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
docs/pages/docs/editor-basics
packages/core/src/blocks/ListItemBlockContent
BulletListItemBlockContent
NumberedListItemBlockContent Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ type BlockNoteEditorOptions = {
43
43
pasteBehavior? : " prefer-markdown" | " prefer-html" ;
44
44
}) => boolean | undefined ;
45
45
}) => boolean | undefined ;
46
- resolveFileUrl: (url : string ) => Promise <string >
46
+ resolveFileUrl: (url : string ) => Promise <string >;
47
47
schema? : BlockNoteSchema ;
48
48
setIdAttribute? : boolean ;
49
49
sideMenuDetection? : " viewport" | " editor" ;
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ const BulletListItemBlockContent = createStronglyTypedTiptapNode({
31
31
const blockInfo = getBlockInfoFromSelection ( state ) ;
32
32
if (
33
33
! blockInfo . isBlockContainer ||
34
- blockInfo . blockContent . node . type . spec . content !== "inline*"
34
+ blockInfo . blockContent . node . type . spec . content !== "inline*" ||
35
+ blockInfo . blockNoteType === "heading"
35
36
) {
36
37
return ;
37
38
}
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ const NumberedListItemBlockContent = createStronglyTypedTiptapNode({
50
50
if (
51
51
! blockInfo . isBlockContainer ||
52
52
blockInfo . blockContent . node . type . spec . content !== "inline*" ||
53
- blockInfo . blockNoteType === "numberedListItem"
53
+ blockInfo . blockNoteType === "numberedListItem" ||
54
+ blockInfo . blockNoteType === "heading"
54
55
) {
55
56
return ;
56
57
}
You can’t perform that action at this time.
0 commit comments