Dojo example.
The Editor adds an extra
element after the nested table:
<p> </p>
No empty paragraph is added on pasting content.
Hello,
The release tag shows which release the fix has been included in. In this case the issue was initially fixed and closed on Oct 18, 2019. It was subsequently re-open (Nov 17, 2020). Then it was finally closed (Jan 5, 2021), without adding a new fix, i.e. the original fix is still in effect.
The reasons for closing the issue are posted below:
When content is pasted in a table through the paste() method, the Editor ensures that the content below the table is selectable by inserting an empty paragraph immediately after the table. There are some exceptions where the paragraph is not being inserted - when the focused table is nested in another table and when the last sibling is not the focused table.
Taking the above into consideration, in the referred Dojo both tables are placed in different DOM elements, thus the Editor is not able to determine if the empty papragraph should be added or not:
Curent:
<div>
<table></table>
</div>
<div>
<table></table>
</div>
Instead, if we do not want the paragraph to be added, the recommended approach is for the tables to be placed in the same DOM element:
<div>
<table></table>
<table></table>
</div>
Closing the issue.
Regards,
Ivan Danchev
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hello,
Issue re-opened due to a newly discovered scenario causing the same problematic behavior: https://dojo.telerik.com/eRUdugew/2
1. Focus a cell with an image in it.
2. Click on the custom button in the Toolbar.
The paste method is executed and a unwanted empty paragraph is added after the first table.
Regards,
Ivan Danchev
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Michael,
Thank you for reporting this Editor behavior. We will fix it as soon as possible.
Regards,
Ivan Danchev
Progress Telerik