New to Kendo UI for jQuery? Download free 30-day trial

Change the Editor New-Line Mode from a P to a Br Tag


Product Progress® Kendo UI® Editor for jQuery
Operating System Windows 10 64bit
Visual Studio Version Visual Studio 2017
Preferred Language JavaScript


How can I change the default new-line behavior from inserting <p> tag to <br> tag in the Kendo UI for jQuery Editor?


The following example demonstrates how to achieve the desired scenario.

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

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

See Also

In this article