javascriptjquerykendo-uitelerikkendo-editor

kendo text editor should not reset its formatting


I want to prevent Kendo UI Editor from resetting its formatting as the user types. Any hack or something will be helpful.

For example:

Type in some text in editor at the end (test) and change the formatting to heading. Press return or enter. It will change the formatting.First Snapshot Second Snapshot


Solution

  • I found it... It was in their demo. I am closing the question. Follow the link

    <textarea id="editor"></textarea>
    <script>
    var defaultTools = kendo.ui.Editor.defaultTools;
    
    defaultTools["insertLineBreak"].options.shift = false;
    defaultTools["insertParagraph"].options.shift = true;
    
    $("#editor").kendoEditor();
    </script>