I am observing somewhat strange behavior when copying a word from a blockquote and then pasting it inside the same blockquote but in an empty paragraph. I searched the forum looking whether anyone has already discussed this behavior but since I could not find anything I am writing about it.
This behavior can be reproduced in the editor on the main page using blockquotes. Blockquotes are the only block nodes that I found in the basic schema that accept another block nodes.
My initial structure is this:
<blockquote> <p>one two three</p> <p><br></p> </blockquote>
Then I copy the word “two” from the first paragraph and paste it in the second empty one. The resulting structure is this:
<blockquote> <p>one two three</p> <blockquote> <p>two</p> </blockquote> </blockquote>
Note that “two” is nested inside another blockquote, although only one word was selected. Is this behavior intentional? I have a custom block node that consists of other block nodes and this behavior does not suit my needs. What I expect for the resulting structure to be is this:
<blockquote> <p>one two three</p> <p>two</p> </blockquote>
Can I get this behavior using node spec configuration or custom code?