This is a migrated thread and some comments may be shown as answers.

Odd behavior with 'Select all - delete - paste'

6 Answers 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 24 May 2013, 07:39 PM
Hi, I think I found a bug in the editor. I looked but I wasn't able to find mention of in other threads. 

To reproduce using the demo editor:
  1. Open the demo editor 
  2. Select-all text in the editor
  3. Delete
  4. Open Dev Tools to view the html elements
  5. Observe the remaining p tag
  6. Paste in any text to the "empty" editor
  7. Observe the pasted text in a hidden k-paste-container element below the p
As a work around, the p tag can be deleted before or after the paste but many of our customers will likely not figure this out on their own.

6 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 27 May 2013, 09:26 AM
Hello Lee,


I was able to reproduce the first part of the current scenario i.e. the remaining empty <p> tag in Chrome, but I was not able to replicate the hidden k-paste-container element, when pasting a new text to the Editor.

Could you provide us more detailed information on the steps required to reproduce this, so I could provide a more concrete information, when logging this issue for our development team. A short screen capture will help us the most. If you don't have a screen grabber, I would suggest you Jing.

I am looking forward to hearing from you.

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lee
Top achievements
Rank 1
answered on 29 May 2013, 04:31 PM
Hi Dimiter, Thanks for your response! I just tried again and I was unable to reproduce it. I believe I was pasting data from either a Google document or a MS Word document but I can't remember the exact source. If it happens again, I'll post again with more info and screen caps.
0
Dimiter Madjarov
Telerik team
answered on 30 May 2013, 10:20 AM
Hello Lee,


Thanks for the update. Do not hesitate to contact us again if you have further issues. I wish you a great day!

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Lee
Top achievements
Rank 1
answered on 30 May 2013, 02:51 PM
Thanks! Take care!
0
Lee
Top achievements
Rank 1
answered on 31 May 2013, 04:35 PM
Hi, This happened again and I was able to get more information. I think there are 2 completely separate issues.

1. Select all - delete doesn't delete everything.

2. The k-paste-container issue seems to be related to the content that I am pasting. If I set a breakpoint on the paste function and check the objects html in the console it is empty.

I have attached a screen cap of the text I copied, the editor and html before the paste, the editor and html after the paste, and the paste object info. Here is the html of the text I copied (via 'Paste Special - Paste HTML Content' using Notepad++):

Version:0.9
StartHTML:0000000161
EndHTML:0000000887
StartFragment:0000000197
EndFragment:0000000851
SourceURL:http://support.pitchengine.com/?page_id=1861
<html>
<body>
<!--StartFragment--><br class="Apple-interchange-newline"><span style="color: rgb(102, 102, 102); font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">We believe it all starts with great content and we want to empower everyone to tell their stories. PitchEngine isn’t just a tool – it’s a mindset.</span><!--EndFragment-->
</body>
</html>
0
Dimiter Madjarov
Telerik team
answered on 04 Jun 2013, 08:37 AM
Hi Lee,


Thank you for the information. I have already escalated the first bug to the development team and it is logged for fixing.

Unfortunately we are still unable to reproduce the second one. Could you specify the browser and the version that you are using? Also a short screen capture will help us the most. Thank you in advance for your cooperation.

 

Regards,
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Lee
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Lee
Top achievements
Rank 1
Share this question
or