We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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', } ] } })
content
components
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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',
}
]
}
})
The text was updated successfully, but these errors were encountered: