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

Bug with kendo editor, hidden element not removing

3 Answers 105 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 29 Jan 2014, 10:14 AM
This bug is to the refrence to the 
http://www.kendoui.com/forums/kendo-ui-web/editor/odd-behavior-with-'select-all---delete---paste'.aspx

I am having same issue in my kendo editor. 
I could not recreated the cause of the problem (happened multiple times) but i can show you the problem.

Go to:
http://demos.telerik.com/kendo-ui/web/editor/api.html

on the set value textbox put 
<p class="k-paste-container">test</p>
and click set value.
now when this is set then, the editor layout is unusable. Whatever you then type is there, but is hidden. You cannot remove the <p> element. Select all -> delete doesn't work. 
when you see the value of the editor it is "<p class="k-paste-container">test</p>"
More problem lies when you save the value in database. When you load the same content to the editor, it is not usable to tell the least.
I am using 2013.3.1119 version of the kendo

Hope to fix this problem asap.



3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 31 Jan 2014, 11:58 AM
Hello Sean,

Since the k-paste container is an internal class for the editor, we'll make sure to remove it when setting content. However, it shouldn't have been serialized, so it is more interesting what caused it to be reported by the editor in the first place. If you can provide some details on that, it would be very valuable.

The reported bug is fixed for the next internal build. Any leftover system elements will be removed upon initialization.

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sean
Top achievements
Rank 1
answered on 03 Feb 2014, 07:49 AM
hey thanks,
looking forward for the update.

About the replication of the bug. As I remember it happened when there were lots of blank spaces in the editor and I did "select all" and delete. Then it just became un-editable.
I also don't know the exact steps to replicate the bug.
0
Alex Gyoshev
Telerik team
answered on 03 Feb 2014, 08:23 AM
Hello Sean,

The fix is included in the latest internal build.

Regards,
Alex Gyoshev
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
Sean
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Sean
Top achievements
Rank 1
Share this question
or