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

Copy&Paste isssue when using .Tag parameter

1 Answer 69 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 03 Oct 2017, 02:47 PM

We're creating editor with these settings:

01.var editor =
02.                html.Kendo()
03.                    .EditorFor(expression)
04.                    .Tag("div")
05.                    .Encode(false)
06.                    .HtmlAttributes(htmlAttributes)
07.                    .Messages(x => x.FontNameInherit("font").FontSizeInherit("size"))
08.                    .Tools(toolsConfigurator)
09.                    .Events(events => events
10.                          .Change("onKendoEditorChange")
11.                          .Execute("onKendoEditorExecute")
12.                          .Select("onKendoEditorSelect")
13.                          .Paste("onKendoEditorPaste"));

 

We use .Tag parameter because we need to access editor content.(Without .Tag editor is in iframe)

So when we're trying to copy & paste in the editor, copied text and cursor always jumps to the bottom of the editor, no matter where it was.

Without .Tag, pasting works fine.

Can You suggest any possible solution?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 05 Oct 2017, 11:44 AM

Hello Peter,

I tested with this demo here and I was unable to reproduce the described behavior: http://demos.telerik.com/aspnet-mvc/editor/inline-editing

There was a bug logged about the case, but it was fixed for the 2016 R3 version. You can check it out here: https://github.com/telerik/kendo-ui-core/issues/1843

If you are using an older version of Kendo UI try if upgrading solves the case.

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Peter
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or