READ and FOLLOW next 5 steps, then REMOVE them before posting the issue
[Bug]: ....grapesjs.version in console and press ENTERi did not understand how to use editor.getSelected().append(<div>...); feature . can someone give an example for it
@Rasazna in below example, i am using it inside a selected event, so when ever you click on an item, your changes apply!
editor.on('component:selected', model => {
editor.getSelected().append('<div>BOO!</div>')
})
Cheers!
Most helpful comment
@Rasazna in below example, i am using it inside a
selectedevent, so when ever you click on an item, your changes apply!Cheers!