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

inline editor's Paste often raise error, even in the demo

1 Answer 12 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ivan
Top achievements
Rank 1
ivan asked on 10 Jan 2014, 03:38 PM
Hi,
 I found the inline editor often raise error when we copy and past.

Just open: (NOTICE: ie8)
http://demos.kendoui.com/web/editor/inline-editing.html


and do this:
1. In the top editor, type in any word, like we say "1", at any place.
2. Select the "1" we just type in,  and use the color picker to give it a color, like we say "red".
3.Now, don't click any place(keep the "1" is still selected), just use "CTRL+C"
4.Don't click any place(just keep the "1" is still selected), now use "CTRL+V"

Now you will see the script error!

In fact, I found it's very hard to really write a complete article in the editor, because it will raise error very soon.
The tragedy is, sometimes it will empty the editor when it raise error!
Could you remove the logic of empty the editor?

That's a really tragedy, because the user type so hard to input so many words in the editor. But you empty it all in an instant.
Yes, I have done the auto-save (bind to the keyup event), when the use enter keyCode =13, I will save the content in the editor to server.
But, when you suddenly empty the editor, the user don't know the content is still on server, he will just put enter key again! So the auto-save event is raised, and the empty is saved to the server, now, the content is missing really.

So, if you just empty the editor, the auto-save action can't really save the situation.

Please check the code, find the place to EMPTY the editor, and remove it, or give us a try catch system, to let us decide if to empty the editor.

yours,
Ivan



1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 14 Jan 2014, 08:48 AM
Hello Ivan,

There were some problems with the copy-paste functionality of the editor in IE8 that have been resolved for the service pack that will be released by the end of the week. Please try it out once it is released and let us know if the problems persist.

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