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

Upgrade to 2013.2.716 causes Editor to stop working

1 Answer 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 26 Aug 2013, 05:02 PM
Hi

I have been testing using Kendo Editor using version v2013.1.514 and it has been working with no problems. 

I received an extension to my testing account a number of days and tried to upgrade to the latest version using the instruction here , but when I do this the text box loses editor features and returns to a normal text box.

My original references are:

 <link rel="stylesheet" type="text/css" href="Content/kendo.common.min.css"/>
    <link rel="stylesheet" type="text/css" href="Content/kendo.default.min.css"/>

 <script type="text/javascript" src="Scripts/kendo.all.min.js"></script>

Jquery is already loaded on the page ahead of the Kendo js file.

The code I use to attach the editor is as follows:

  var editor = $('<div id="editor"/>');
    editor.appendTo($(element));
    editor.kendoEditor({
        change: onChange,
        tools: [
                 "bold",
                 "italic",
                 "underline",
                 "strikethrough",
                 "justifyLeft",
                 "justifyCenter",
                 "justifyRight",
                 "justifyFull",
                 "insertUnorderedList",
                 "insertOrderedList",
                 "indent",
                 "outdent",
                 "createLink",
                 "unlink",
                 "insertImage",
                 "subscript",
                 "superscript",
                 "createTable",
                 "addRowAbove",
                 "addRowBelow",
                 "addColumnLeft",
                 "addColumnRight",
                 "deleteRow",
                 "deleteColumn",
                 "viewHtml",
                {
                    name: "formatBlock", items: [
            // changes wrapping block to paragraph
            { text: "paragraph", value: "p" }
                    , { text: "H1", value: "h1" }
                     , { text: "H2", value: "h2" }
                     , { text: "H3", value: "h3" }
                    ]
                }

        ]
    });


Can you advise how I can update to the latest version?

Thanks 

Mark 

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 28 Aug 2013, 12:04 PM
Hi Mark,

From the provided configuration it appears you are using Kendo UI Web Editor - hence you should just replace the scripts with the new ones. As for the issue, I believe it is caused by the editor is initialized from a <div> element while it should be initialized from a <textarea> element (documentation link). Please replace the aforementioned HTML element and let me know if you still observe any problems.
  

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Editor
Asked by
Mark
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or