BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Feature: enforce document structure

Open howtopick opened this issue 2 years ago • 4 comments

I try to fix blockContainer+ to heading blockContainer+ in BlockGroup.ts, but it don't work. someone know that?

howtopick avatar Mar 22 '23 09:03 howtopick

@howtopick this is not supported at the moment, we can look into it if more users require this!

YousefED avatar Mar 25 '23 02:03 YousefED

@YousefED Hi, I'd like to override the Doc schema like this https://tiptap.dev/docs/editor/examples/custom-document

I found this https://github.com/TypeCellOS/BlockNote/blob/main/packages/core/src/pm-nodes/Doc.ts

I hope I can change the schema to heading blockGroup

wenerme avatar Jun 13 '24 10:06 wenerme

I'll put my vote on this as well. I'd love to unify my title bar into the editor to be more like Notion

sb8244 avatar Jul 20 '24 22:07 sb8244

Would love this feature.

We should be able to enforce document schema. eg: All documents should start with an h1.

deanthing avatar Aug 20 '24 18:08 deanthing