Skip to content
2 changes: 1 addition & 1 deletion docs/pages/docs/editor-basics/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type BlockNoteEditorOptions = {
pasteBehavior?: "prefer-markdown" | "prefer-html";
}) => boolean | undefined;
}) => boolean | undefined;
resolveFileUrl: (url: string) => Promise<string>
resolveFileUrl: (url: string) => Promise<string>;
schema?: BlockNoteSchema;
setIdAttribute?: boolean;
sideMenuDetection?: "viewport" | "editor";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const BulletListItemBlockContent = createStronglyTypedTiptapNode({
const blockInfo = getBlockInfoFromSelection(state);
if (
!blockInfo.isBlockContainer ||
blockInfo.blockContent.node.type.spec.content !== "inline*"
blockInfo.blockContent.node.type.spec.content !== "inline*" ||
blockInfo.blockNoteType === "heading"
) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ const NumberedListItemBlockContent = createStronglyTypedTiptapNode({
if (
!blockInfo.isBlockContainer ||
blockInfo.blockContent.node.type.spec.content !== "inline*" ||
blockInfo.blockNoteType === "numberedListItem"
blockInfo.blockNoteType === "numberedListItem" ||
blockInfo.blockNoteType === "heading"
) {
return;
}
Expand Down
Loading