Replies: 2 comments
-
You should add a Block to the BlockManager like this: blockManager.add('h1-block', {
label: 'Heading',
content: '<h1>Put your title here</h1>',
category: 'Basic',
attributes: {
title: 'Insert h1 block'
}
}); Here's the API reference for the BlockManager. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You created the Block, that doesn't have any component context for the editor in that way so it falls back to the best default option (Text in that case). Try to read Components first, then Blocks. Probably our falt is not to have all HTML elements as components (in your case the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All ,
I have created a custome button component in the grapes js , when dragged and dropped , it is successfully created in the editor but after the reload the button component is changing to the text component . Please help
I have attached the code and screenshots
Beta Was this translation helpful? Give feedback.
All reactions