Open kurian86 opened 2 weeks ago
When an image element is present, empty paragraphs are added around it when loading the content in the editor.
Expected Behavior: These empty paragraphs should not be added.
<p>Simple example</p> <p><div style=\"text-align: center;\" class=\"image\"><img height=\"auto\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAAZklEQVR4XkXNSRKAIAwEQD6vyBJx4ScKKPi3GBKrPExx6MygjD4RXMbVX7hR9rlSGsbQUE2E3gouHeFm7BE0iUGaH8KHljD4ghtIM/L0I2h0+v/ts1DppeY4HKjHPp0xuMIHq6+cFyEtdlXiYF1iAAAAAElFTkSuQmCC\" align=\"center\" inline=\"false\"></div></p> <p>With two lines</p>
Actual Behavior: Empty paragraphs are added around the image element.
<p>Simple example</p> <p></p> <p><div style=\"text-align: center;\" class=\"image\"><img height=\"auto\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAAZklEQVR4XkXNSRKAIAwEQD6vyBJx4ScKKPi3GBKrPExx6MygjD4RXMbVX7hR9rlSGsbQUE2E3gouHeFm7BE0iUGaH8KHljD4ghtIM/L0I2h0+v/ts1DppeY4HKjHPp0xuMIHq6+cFyEtdlXiYF1iAAAAAElFTkSuQmCC\" align=\"center\" inline=\"false\"></div></p> <p></p> <p>With two lines</p>
If you save this content and load it again, additional empty paragraphs will be added.
<p>Simple example</p> <p></p> <p></p> <p><div style=\"text-align: center;\" class=\"image\"><img height=\"auto\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAAZklEQVR4XkXNSRKAIAwEQD6vyBJx4ScKKPi3GBKrPExx6MygjD4RXMbVX7hR9rlSGsbQUE2E3gouHeFm7BE0iUGaH8KHljD4ghtIM/L0I2h0+v/ts1DppeY4HKjHPp0xuMIHq6+cFyEtdlXiYF1iAAAAAElFTkSuQmCC\" align=\"center\" inline=\"false\"></div></p> <p></p> <p></p> <p>With two lines</p>
Steps to Reproduce:
When an image element is present, empty paragraphs are added around it when loading the content in the editor.
Expected Behavior: These empty paragraphs should not be added.
Actual Behavior: Empty paragraphs are added around the image element.
If you save this content and load it again, additional empty paragraphs will be added.
Steps to Reproduce: