How to prevent exit break from 1 block only #1512
Unanswered
Hooman-studio
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have you tried exclude? From QueryNodeOptions? export interface QueryNodeOptions {
/**
* Query the node entry.
*/
filter?: <N extends TNode>(entry: TNodeEntry<N>) => boolean;
/**
* List of types that are valid. If empty or undefined - allow all.
*/
allow?: string[] | string;
/**
* List of types that are invalid.
*/
exclude?: string[] | string;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have implemented the exit break plugin with the following rules:
I was wondering how I prevent the exit break from exiting all blocks, for example I want to exit the heading block when I press enter, but if I am inside of a table block, I don't want to also exit that block, just exit the header block. Right now it exits out of all blocks. I have tried settings different values for
level
but I haven't found a working solution yet.Beta Was this translation helpful? Give feedback.
All reactions