Dear Team,
I am using the following js 2017.3.1026/kendo.all.min.js( I have used latest also but result was same) for Kendo. In our application I am using kendo ui editor. In the Same Page i am using the FileBrowser and Kendo Editor
The issue is below. The site is hosted in https and the issue with only chrome (assumption is the issue is related with iframe).
1) In FileBrowser - When click on the When I click on the Insert File icon I am getting the below error in javascript
Cannot use 'in' operator to search for 'getSelection' in undefined
at Object.selectionFromWindow (kendo.all.min.js:65371)
at Object.selectionFromDocument (kendo.all.min.js:65381)
at init.getSelection (kendo.all.min.js:63676)
at init.getRange (kendo.all.min.js:63686)
at init.exec (kendo.all.min.js:63723)
at init._executeToolCommand (kendo.all.min.js:71614)
at HTMLAnchorElement.<anonymous> (kendo.all.min.js:71602)
at HTMLUListElement.dispatch (jquery-1.10.2.js:5109)
at HTMLUListElement.elemData.handle (jquery-1.10.2.js:4780)
Please find the code
@(Html.Kendo().Editor()
.Name("txtTest")
.Tools(tools => tools.Clear().InsertFile())
.HtmlAttributes(new { style = "height:auto", id = "txtTest" })
.Events(events => events
.Select("selectTestJavascript")
)
.FileBrowser(fileBrowser => fileBrowser
.File(Request.Url.GetLeftPart(UriPartial.Authority) + "/New/Test/{0}")
.Read("Read", "EmbargoFileBrowser", "Protected")
.Create("Create", "EmbargoFileBrowser", "Protected")
.Destroy("Destroy", "EmbargoFileBrowser", "Protected")
.Upload("Upload", "EmbargoFileBrowser", "Protected")
)
2) Kendo Editor - I have given some by default values but it is showing when its load. I am not getting any error. Please find the code
@(Html.Kendo().EditorFor(model => model.HtmlTest)
.Name("HtmlText")
.Encode(false)
.HtmlAttributes(new { @class = "form-control", id = "txtMultile", style = "width: 100%;height:600px" })
.Tools(tools => tools
.Clear()
.Bold().Italic().Underline().Strikethrough()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.InsertUnorderedList().InsertOrderedList()
.Outdent().Indent()
.CreateLink().Unlink()
.InsertImage()
.InsertFile()
.SubScript()
.SuperScript()
.TableEditing()
.ViewHtml()
.Formatting()
.CleanFormatting()
.FontName()
.FontSize()
.FontColor().BackColor()
)
.ImageBrowser(imageBrowser => imageBrowser
.Image(Request.Url.GetLeftPart(UriPartial.Authority) + "/New/Test/{0}")
.Read("Read", "EmbargoImageBrowser", "Protected")
.Create("Create", "EmbargoImageBrowser", "Protected")
.Upload("Upload", "EmbargoImageBrowser", "Protected")
.Thumbnail("Thumbnail", "EmbargoImageBrowser", "Protected"))
)
.Value(@<text>
<h4><span style="font-family:Calibri;"><span style="background:yellow;">test data</span></h4>
</p>
</text>)
)
Kindly request you to help as soon as possible