RadEditor Behavior Question

4 posts, 0 answers
  1. Gary
    Gary avatar
    22 posts
    Member since:
    Sep 2010

    Posted 29 Dec 2016 Link to this post

    I have a question about the behavior of the RadEditor control.

    We a page in our website that contains a RadEditor control.   This page is on two different servers representing two different environments.  Test environment and Production Environment.   The page is the same page in both environments.

    Here is the quandary, the RadEditor control is behaving differently on the two servers.

    In the test Environment if I type the following into the control:

    Test
    Test
    Test
    Test

    And then look at the HTML I see:

    Test<br />
    Test<br />
    Test<br />
    Test<br />

    As I would expect.

    However in the Production Environment if I type

    Test
    Test
    Test
    Test

    Then look at the HTML I see:

    <p>Test </p>
    <p>Test </p>
    <p>Test </p>
    <p>Test </p>

    I am at a loss as to why the behavior is so different.   Is there some configuration that could be different between the servers / environments?
    Why would the control behave differently like this?

    Thanks for your help.

    Gary Graham

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1502 posts

    Posted 03 Jan Link to this post

    Hello Gary,

    It looks like the new line mode of the two editors is different. It may be possible the following:
        - You are using different Telerik.Web.UI.dll assemblies in both projects where the default newline mode value is different.
        - Or you have set different values for it in the editor's declaration.
    You can try to either unify both versions or unify editor's configurations. More information on the matter is available here:
         - http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/control-new-line-behavior
         - http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/changes-and-backwards-compatibility/inline-and-block-commands-behavior-change#user-experience-with-radeditor

    Regards,
    Danail Vasilev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Gary
    Gary avatar
    22 posts
    Member since:
    Sep 2010

    Posted 03 Jan in reply to Danail Vasilev Link to this post

    I tried this suggestion and no matter what I set the NewLineMode parameter to ("P", "Br", or "Div") it always inserts a Paragraph Tag

    Any other suggestions?

  4. Vessy
    Admin
    Vessy avatar
    1477 posts

    Posted 04 Jan Link to this post

    Hi Gary,

    We noticed that you have opened two threads with one and the same question, so I will suggest that we continue our conversation only in one of them in order to keep the information consistent. You can expect our answer here.

    Regards,
    Vessy
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 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