Set default formatting

4 posts, 0 answers
  1. Arik
    Arik avatar
    6 posts
    Member since:
    Aug 2017

    Posted 14 Jan 2018 Link to this post

    I'm using the Kendo Editor for Angular JS.
    I want to set the default Formatting tool value to be Paragraph when the editor is loaded.
    Is there a way to do that?

    Other than that, in the thread it says that "The Paragraph format option is the default structural markup option", but when only a single-line text is entered with no formatting, the <p> tags are not added to it.
    for example in , if the character 'a' is written in the editor and the focus is removed, the value is saved as only 'a' and not '<p>a</p>'.

    Is this the editor's behavior by design? Or is it a bug?


  2. Arik
    Arik avatar
    6 posts
    Member since:
    Aug 2017
  3. Arik
    Arik avatar
    6 posts
    Member since:
    Aug 2017
  4. Ivan Danchev
    Ivan Danchev avatar
    1646 posts

    Posted 16 Jan 2018 Link to this post

    Hello Arik,

    This behavior is by design. Paragraph is the default markup option but it is triggered after pressing Enter. As a workaround you can set an empty paragraph in the Editor, which will trigger the Paragraph option even on entering a single character:
    <textarea kendo-editor k-ng-model="html">

    Modified dojo.

    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top