Editor show the error and also in read-only mode

2 posts, 0 answers
  1. Rajan
    Rajan avatar
    4 posts
    Member since:
    Mar 2015

    Posted 10 Sep 2015 Link to this post

    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"] });

    JS file

    var CONEMAIL = {
    loadeditor: function () { var editor = $("#txtbody").data("kendoEditor"); editor.refresh();


  2. Dimo
    Dimo avatar
    8404 posts

    Posted 14 Sep 2015 Link to this post

    Hi Rajan,

    The Editor can become readonly if it is moved in the DOM. Possible solutions include:

    - call the refresh() method after the Editor has been moved in the DOM and when it should be ready for use

    - use the Editor's inline mode, which does not include an iframe

    Let me know if you have further questions.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top