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

[Solved] Paragraphs in RadEditor and IE

1 Answer 117 Views
Editor
This is a migrated thread and some comments may be shown as answers.
thejazzybrain
Top achievements
Rank 1
thejazzybrain asked on 18 May 2009, 05:03 PM

Dear Telerik team,

I had made this post ( http://www.telerik.com/community/forums/aspnet-ajax/editor/inconsistent-new-paragraph-button.aspx  ) to your fora almost a year ago. Please take some time to carefully read it.

I see that until today this issue is still pending in your  to-do list.

As this is an extremely important issue for my product that uses the RadEditor I would like to know if there is a plan to resolve it.

In addition, I would like to describe the following scenario to you.

Let’s suppose that the following HTML is within the RadEditor:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam tempor, purus sed faucibus egestas, elit arcu fringilla massa, ac dapibus dui nunc et mi.<br/> 
<br/> 
Aliquam erat volutpat. Donec faucibus lobortis ornare. Vivamus eu enim a tortor ornare gravida et sit amet est. Vivamus tempus quam a orci rhoncus nec semper sapien dictum.<br/> 
<br/> 
Integer imperdiet ultrices mauris id hendrerit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.<br/> 
<br/> 
Integer at enim in velit vulputate egestas ac eu leo. Donec venenatis, leo vel auctor consequat, nisl libero pulvinar dui, in congue erat libero sit amet lorem.<br/> 
<br/> 
Cras eget nulla risus, fermentum volutpat tellus. Phasellus vestibulum lobortis arcu, at pharetra urna mollis in.<br/> 
<br/> 
Ut euismod dignissim nisi sit amet interdum. Etiam tincidunt mi commodo est blandit ullamcorper. Aliquam euismod venenatis mauris quis suscipit.  
Please describe me how will I convert the second chunk of text “Aliquam erat volutpat. Donec faucibus lobortis ornare. Vivamus eu enim a tortor ornare gravida et sit amet est. Vivamus tempus quam a orci rhoncus nec semper sapien dictum.” into a paragraph in IE, using only the visual view and not the HTML view of the RadEditor. That is, I want to wrap that text within a p tag.

I am sure that you understand the importance of this issue as it breaks my products IE compatibility.

I do believe that your products are indeed “The Industry's Leading AJAX Components, but I would also believe that such a trivial feature wouldn't be pending.

Best regards,

Jason.

Edited (Added the following paragraphs)

Another reason that this issue is so important is that blockquotes should be used, according to w3c, only when it contains a text container element such as a P or a DIV. Hence, it is vital to be able to wrap text into P tags. Note that some browsers do not render blockquotes properly if they do not contain a text container tag.

Try this scenario as well. Using the text mentioned above, try to wrap the second chunk of text into a blockquote tag in IE by using the Indent button. Again this is impossible to do by only using the visual view, as it wraps the entire Editor content into it.

A very useful feature would be to optionally automatically insert a P tag inside the blockquote when the Indent button is clicked. It is more consistent and more correct according to W3C and browser behavior.

NOTE: Just found out. A totally different behavior in Chrome.


1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 19 May 2009, 04:18 PM
Hello thejazzybrain,

The original situation with FireFox + Paragraphs has been significantly improved, in fact a brand new implementation is provided in the editor. You can give it a try by downloading the latest internal build of RadControls for ASP.NET AJAX from the following link: http://www.telerik.com/account/downloads/internal-builds.aspx. The currently available latest build is Telerik.Web.UI_2009_1_514_trial_hotfix.zip.

With regards to the current issue with regards to IE and Paragraphs - improvements have been made as well. One thing you *might* need to do (if you test with very simple content - one line only) is to disable one of the editor content filters from the code-behind, e.g:
  RadEditor1.DisableFilter(EditorFilters.FixEnclosingP);  

Last, but not least, as far as Paragraphs and Headings are concerned, I would like to point your attention to the following online demo:
http://demos.telerik.com/aspnet-ajax/editor/examples/formatblock/defaultcs.aspx
(In the Internal Build there have been improvements to this functionality as well).

All of these improvements will be made official and public in the coming Q1 2009 SP2 to be released next week.


Best wishes,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
thejazzybrain
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or