Hey,
I’m trying to develop an image inline node with smart uploading. Everything seems to work just fine, however, I’ve stumbled upon 2 issues I can’t solve:
- I want to disallow the image marks to be wrapped in some other marks (bold, italic, underline, strike, etc.). As for now, given I have the following DOM:
<p>Some text some text <img ..> some text some text</p>
and I try select everything and applies BOLD to it, the entire paragraph’s content will be wrapped in a <strong>
tag:
<p><strong>Some text some text <img ..> some text some text</strong></p>
Ideally, I would like it to be:
<p><strong>Some text some text </strong><img ..><strong> some text some text</strong></p>
- For some reason, Prosemirror adds a
<br>
to the end of my paragraph even tho it contains an image. Why is that?
<p><img ...><br></p> <!-- See the <br> at the end of the paragraph. Why? -->
Thanks!