editor.js
editor.js copied to clipboard
How to select a block after inserting it?
How to select a block after inserting it or in general do selecting programmatically.
This is how i insert a new block:
this.myEditor.blocks.insert('paragraph', {text: newBlock.text)}, null, this.myEditor.blocks.getBlocksCount());
This works fine but how do i select now this block so in frontend, the block is marked?
Thanks for any inputs!