-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Prevent user to add new blocks #784
Copy link
Copy link
Closed
Description
Hi everyone,
Is there already a way to prevent user to add a new blocks.
For example, if I decide to fill the editor with only a block header and a block paragraph, I would like to restrict the user to only edit the header and the paragraph and not to add others headers or paragraphs.
Example here :
`
const editor = new EditorJS({
holderId : 'editorjs',
tools: {
header: {
class: Header,
config: {
placeholder: 'Enter a header'
}
}
},
data : {
blocks: [
{
type: "header",
data: {
text: "Mon titre"
}
},
{
type: "paragraph",
data: {
text: "Mon texte"
}
}
],
}
});
`
Thanks !
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels