+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Editor Update <p> to <br />

Editor Update &lt;p&gt; to &lt;br /&gt;

4 posts, 0 answered
  1. ori
    ori avatar
    2 posts
    Registered:
    11 Nov 2010
    30 Nov 2010
    Link to this post
    Hi to all,

    I am using Telerik version 2010.3.1110 and trying to work with the editor.
    When i click the "Enter" button the editor generate the html code: <p>.
    I would like to know if i can change it to <br />

    Thank you

    Ori
     
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Nov 2010
    Link to this post
    Hello ori,

    Please take a look at this article - Using the NewLineBr Property

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. ori
    ori avatar
    2 posts
    Registered:
    11 Nov 2010
    30 Nov 2010
    Link to this post
    Hi

    I have read the article, so i need to set the property: NewLineBr="false"
    Search on google i have found this example.

    I am using the code:
    <%Html.Telerik().Editor()
               
              .Name("MyEditor")
              .Tools(tools =>
                  tools.Clear()
                  .Bold()
                  .Italic()
                  .Separator()
                  .InsertUnorderedList()
                  )
              .Value(()=>
              {
              %>>
              <strong> Hellow World!</strong>
              <%
              })
              .Render(); %>

    Can you please tell me where can i add this property


    Thank you for your fast reaction

    Ori
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Nov 2010
    Link to this post
    Hi ori,

    This is a property of the RadEditor, so you can set it on the server side - Page_Load ( InitializeControls or CreateChildControls for a custom complex contorols) or declaratively where you have added RadEditor contorol - on a page or wrapped inside another control.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered