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

Issue with pasting in different browers

1 Answer 15 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 22 Jan 2018, 10:10 AM

Hi,

 

Currently i am experiencing an issue with the built in Editor, It is pre-filling with content fine, saving and submitting fine, however in Chrome and Edge when pasting content of any type e.g just a single word at the top of the content,the editor scrolls down to the bottom of the content. The pasting works fine and everything is displayed as it should be after scrolling up to find it.

 

This works as expected in Firefox just not in Chrome and Edge.

 

I am building up the editor as follows, I have tried removing the stylesheets and encode attribute to see if these were causing any issues to no avail, the content would just be some HTML, i have tested with some plain text and still get the issue:

 

@(Html.Kendo().Editor()
                    .Name("reportContent")
                    .HtmlAttributes(new { style = "width: 100%; height: 500px" })
                    .Tools(tools => tools
                        .Clear()
                        .ViewHtml()
                        .Bold().Italic().Underline().Strikethrough()
                        .JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
                        .InsertUnorderedList().InsertOrderedList()
                        .TableEditing()
                        .CleanFormatting()
                        .Formatting()
                        .FontName()
                        .FontSize()
                        .FontColor().BackColor()
                    )
                .Value(@template)
                .Encode(true)
                .StyleSheets(c => c
                    .Add(Url.Content("~/Styles/CKEditor.css")))
            )

Any help would be appreciated :)

 

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 23 Jan 2018, 04:03 PM
Hello Mark,

I used the provide code to prepare a sample project, which you may find attached. I have tested in Chrome and Edge, but I did not manage to reproduce the described issue. In the linked screencast you can see the behavior at my end on Chrome. 

Could you please confirm which Kendo version you are using. We had such bug in the past, but it has been fixed. 

In case you are facing the issue with our latest version, I will appreciate if you modify the attached project in order to replicate the issue the way it is at your end. It will be helpful if you can give us more details regarding the steps required to reproduce the issue. This will help us to investigate locally and assist you further.  

Regards,
Neli
Progress Telerik
Try our brand new, jQuery-free Angular 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
Mark
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or