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

Browser differences.

4 Answers 95 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Uwe Eichkorn
Top achievements
Rank 1
Uwe Eichkorn asked on 20 Apr 2010, 01:55 PM
Hi there

we've detected different behaviours within the editor using different browsers.

Example for reproducing

1. Go to "http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx"
2. Choose new Lines as: Paragraphs
3. Change to the HTML view and remove the existing content.
4. Type in this <div>Hello</div>
5. Change back to the Design view
6. Press enter after the word "Hello" and type in "World"
7. Change to HTML view

The generated html in Firefox is formated like this (this is our preferred code)

<div>
<p>Hello</p>
<p>World</p>
</div>

The generated html in IE and Opera is formated like this

<div>Hello</div>
<div>World</div>

The generated html in Safari is formated like this

<p>Hello</p>
<p>World</p

Thanks
Uwe

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Apr 2010, 01:58 PM
Hi Uwe,

These are browser related issues due to the rich text editing engine of the browser where RadEditor operates. Nevertheless, I logged them in the PITS system for improvement.

I also updated your Telerik points.

Sincerely,
Rumen
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.
0
Uwe Eichkorn
Top achievements
Rank 1
answered on 21 Apr 2010, 02:19 PM
Hi Rumen,

is it possible to unify this behaviour for the different browsers? We use the RADeditor as a integrated part of the sitecore cms and it would be nice when all the content authors would generate the same html code.

Thanks & Regards
Uwe
0
Rumen
Telerik team
answered on 21 Apr 2010, 02:29 PM
Hello Uwe,

It is very difficult to change existing browser behaviors because each browser behaves differently. For example IE inserts a <p> tag on enter key press, Firefox a <br/> tag, Chrome / Safari insert a <div> tag.

We are continuously working on improving the NewLineBr functionality and in Q1 2010 (version 2010.1.309) we provided support for paragraph insertion in Safari / Chrome when pressing Enter.

We will research the reported behaviors in details and try to unify them in the different browsers. You can check the status of our progress in this PITS item: http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/1872.

Kind regards,
Rumen
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.
0
Uwe Eichkorn
Top achievements
Rank 1
answered on 22 Apr 2010, 08:31 AM
Hi Rumen,

thanks for your efforts
Uwe
Tags
Editor
Asked by
Uwe Eichkorn
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Uwe Eichkorn
Top achievements
Rank 1
Share this question
or