Cannot delete paragraph before and after a widget
— at Version 4
Found in Chrome, confirmed also on Firefox.
- Create a table
- Insert a widget (e.g. Enhanced Image) in a table cell (note: it works only in CKEditor 4.4.1+ #11798)
- See that below widget an empty paragraph is created. If this additional space is disturbing for somebody, one cannot remove it.
This issue can also be reproduced directly in body: http://stackoverflow.com/questions/30262191/ckeditor-how-to-delete-empty-paragraphs-before-and-between-widgets
To reproduce try this code:
<table border="1" cellpadding="1" cellspacing="1" style="width:500px">
<tbody>
<tr>
<td> </td>
<td>
<figure class="image"><img alt="dfgdfg" height="480" src="assets/image1.jpg" width="377" />
<figcaption>Caption</figcaption>
</figure>
<p> </p>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
There is one interesting method to actually remove the element. But this is so counter-intuitive that it should not be considered as a correct solution.
- Put the cursor in the
<p>
element that you want to removed
- Select
p
in elements path (see that additional br
showed up in the elements path automatically)
- Press
Backspace
. Now the paragraph is gone (although slightly different visual result is in Chrome and Firefox).
I cannot delete the first
<p> </p>
if it's followed by<figure>
. I tried this with Chrome.