Change the New-line Mode from P to Br tag

The example here demonstrates a way to change the default new-line behavior from inserting <p> tag to <br> tag.

  <textarea id="editor"></textarea>
    var defaultTools = kendo.ui.Editor.defaultTools;

    defaultTools["insertLineBreak"].options.shift = false;
    delete defaultTools["insertParagraph"].options;

See Also

For more runnable examples on the Kendo UI Editor, browse its How To documentation folder.

In this article
Not finding the help you need? Improve this article