editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

How to select a block after inserting it?

Open simonfunk opened this issue 3 years ago • 0 comments

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!

simonfunk avatar Jul 14 '22 18:07 simonfunk