Hi all,
we are the new one to kendo ui and we develop the applications UI, completely based on html & JQuery. FYI, The pages are open based on left hand side menu (div) to right side (div tag). (check below code : formholder is right side div tag).
$(
'#formholder'
).load(page,
function
() {
$(
'#formholder'
).show(
"slide"
, { direction:
"left"
}, 500); });
we use the Kendo UI Editor in one html page, we got the below error (screen shot also attached). and also Editor was open as read only mode (disabled mode) so we can't able to enter any value. if we use refresh() method in DOM (after press F12 and then run refresh() method in console) directly the control will be enabled. FYI, we use Chrome browser, we check the same in mozila also but still we are facing the issue. So, please anyone help us to go for further.
" Uncaught TypeError: Cannot use 'in' operator to search for 'getSelection' in undefined "
The code :
$(document).ready(
function
() { $(
'#txtbody'
).kendoEditor({ tools: [
"bold"
,
"italic"
,
"underline"
,
"strikethrough"
,
"justifyLeft"
,
"justifyCenter"
,
"justifyRight"
,
"justifyFull"
,
"insertUnorderedList"
,
"insertOrderedList"
,
"indent"
,
"outdent"
,
"createLink"
,
"unlink"
,
"insertImage"
,
"insertFile"
,
"subscript"
,
"superscript"
,
"createTable"
,
"addRowAbove"
,
"addRowBelow"
,
"addColumnLeft"
,
"addColumnRight"
,
"deleteRow"
,
"deleteColumn"
,
"viewHtml"
,
"formatting"
,
"cleanFormatting"
,
"foreColor"
,
"backColor"
,
"print"
] });
CONEMAIL.loadeditor();});
JS file
var
CONEMAIL = {
loadeditor:
function
() {
var
editor = $(
"#txtbody"
).data(
"kendoEditor"
); editor.refresh();
}
};