This is a migrated thread and some comments may be shown as answers.

RadEditor Behavior Question

3 Answers 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 2
Gary asked on 29 Dec 2016, 06:41 PM

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

3 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 03 Jan 2017, 08:56 AM
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.
0
Gary
Top achievements
Rank 2
answered on 03 Jan 2017, 09:48 PM

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?

0
Vessy
Telerik team
answered on 04 Jan 2017, 10:26 AM
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.
Tags
General Discussions
Asked by
Gary
Top achievements
Rank 2
Answers by
Danail Vasilev
Telerik team
Gary
Top achievements
Rank 2
Vessy
Telerik team
Share this question
or