Completed
Last Updated: 16 Mar 2021 09:51 by ADMIN
Release 2019.R3.SP1
Michael
Created on: 23 Sep 2019 06:00
Category: Editor
Type: Bug Report
1
Editor adds an empty paragraph on pasting text in nested table

Bug report

Reproduction of the problem

Dojo example.

  1. Copy a word
  2. Click in the Editor after "Location" or "Date"
  3. Press Enter
  4. Press Ctrl + V to pasted the copied text.

Current behavior

The Editor adds an extra

element after the nested table:

<p>&nbsp;</p>

Expected/desired behavior

No empty paragraph is added on pasting content.

Environment

  • Kendo UI version: 2019.3.917
  • jQuery version: x.y
  • Browser: [all]
4 comments
ADMIN
Ivan Danchev
Posted on: 16 Mar 2021 09:51

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.

Steve
Posted on: 09 Mar 2021 10:34
Not sure how this can be 'completed', when the issue was reopened after the date it says it was completed above?
ADMIN
Ivan Danchev
Posted on: 17 Nov 2020 16:41

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/.

ADMIN
Ivan Danchev
Posted on: 27 Sep 2019 17:05

Hi Michael,

Thank you for reporting this Editor behavior. We will fix it as soon as possible.

Regards,
Ivan Danchev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.