Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read properties of undefined (reading 'BlockManager') #22

Open
thatsenam opened this issue Aug 3, 2023 · 0 comments

Comments

@thatsenam
Copy link

i tried to run the code in console but it seems this library removed the default funcitonality of the grapejs library. am i wrong anyway?

window.editor.BlockManager.add('my-block-id', {
// ...
content: {
tagName: 'div',
draggable: false,
attributes: { 'some-attribute': 'some-value' },
components: [
{
tagName: 'span',
content: 'Some static content',
}, {
tagName: 'div',
// use content for static strings, components string will be parsed
// and transformed in Components
components: 'HTML at some point',
}
]
}
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant