Have a nice day to everyone!
I have an element in the editor, in the NodeSpec of which I have:
group: block
content: inline*
atom: true
My problem is that I definitely need to have atom:true because I need access to the selectNode and deselectNode methods in the NodeView, but in this case, when focusing, my element is fully selected, but I need to put the cursor in an inline element to enter text.
How do I change the selection when focusing?
I tried to define the setSelection method in the NodeView, but something didn’t work out for me… I don’t understand what I should do in this method.
And I tried to create a Transaction in the selectNode and specify the Selection, but I also didn’t get the result I needed.
Thank you for your time!