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

Line break does not clear current block element (unexpected behavior?)

5 Answers 66 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 01 Nov 2011, 03:43 PM
When I enter text in the RadEditor for SharePoint 2010 (a page content field), highlight the text and select Heading 1 from the menu, and then press enter, the new line is still within the H1 element (and has similar styles applied).

I expected that the H1 element would be closed (unless I specifically extended it by pressing shift+enter).

I have demonstrated this behavior on my trial install of RadEditor for SharePoint (as well as on the Telerik demo at http://sharepoint.telerik.com/aspnet-ajax/web-parts/Pages/Content-Editor-Web-Part-using-RadEditor.aspx), in IE8 and Chrome 15. (Behavior is as expected in Firefox 7.)

Unfortunately, this is the same as the behavior of SharePoint 2010's default rich-text editor. I reported the behavior to Microsoft (see http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/49f4276d-c709-43ad-9ebd-e5fc44c1b4f4/), which they say they will address in a future update. This is the primary reason why I am evaluating 3rd-party rich-text editors.

Are there any workarounds for this behavior?

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Nov 2011, 04:57 PM
Hi Chris,

The requested functionality with block elements and the enter key is enhanced in the latest builds of RadEditor in IE8+ and Firefox and it works as expected by you. You can test the latest build of RadEditor in the following demos:

Default example
and
ContentAreaMode="DIV"

This behavior is still not implemented for the WebKit browsers but it is logged in our ToDo list for implementation.

The SharePoint versions of RadEditor are based on the regular RadEditor for ASP.NET AJAX.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Chris
Top achievements
Rank 1
answered on 01 Nov 2011, 08:58 PM
Hi Rumen,

That's great news. Any estimate as to when this update will be integrated into a public release of RadEditor for SharePoint?
0
Rumen
Telerik team
answered on 02 Nov 2011, 03:24 PM
Hello Chris,

Could you please see my test in the following video http://screencast.com/t/9pdImE9OS, because it seems that the problem is fixed in the latest 2011.2 915 (Q2 2011 SP1) for Chrome / Safari?

That is why my suggestion is to test the latest version of RadEditor for SharePoint 2010 which is version 6.1.7.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Chris
Top achievements
Rank 1
answered on 07 Nov 2011, 07:23 PM
Thanks. I had not understood that a new release was already available, since I had downloaded the trial version just 5 days prior to my inquiry.

I was able to download the release you mentioned from the trial download page at http://www.telerik.com/account/your-products/trial-product-versions/trial-single-download.aspx?pmvid=0&pid=561.

I installed the following items:
  • Telerik.Web.UI_2011_2_915_Trial.msi
  • Telerik_AJAX_controls_2011_2_915_for_SharePoint_2010_Trial

After installation, I updated the assembly name in the SharePoint page layout from:
RadEditorSharePoint, Version=6.1.6.0, Culture=neutral, PublicKeyToken=1f131a624888eeed
to:
RadEditorSharePoint, Version=6.1.7.0, Culture=neutral, PublicKeyToken=1f131a624888eeed

However, I am still seeing issues in SharePoint. For example:

  1. Add a line ("Heading")
  2. Highlight the line and apply Colored Heading 2
  3. Press enter
  4. Enter "Test"
  5. Press enter
  6. Enter "Test"

The following HTML results:
<h2 class="ms-rteElement-H2B">Heading</h2>
<p class="ms-rteElement-H2B">Test<br />
Test</p>

I expected:
<h2 class="ms-rteElement-H2B">Heading</h2>
<p>Test<br />
Test</p>

FYI, I do get the expected behavior in the RadControls for ASP.NET AJAX Q2 2011 SP1 Live Examples that were installed on the server.
0
Rumen
Telerik team
answered on 09 Nov 2011, 02:21 PM
Hi Chris,

I tested RadEditor for SharePoint 2010 and I was unable to reproduce the problem.

It is possible that you still use an older version. Could you please upgrade to the latest version using the instructions provided in the following help article: Upgrading to a newer version of RadEditor for SharePoint 2010?
To make sure that the editor is updated, right click in the browser page and choose View Source. After that search for the following string: <!-- 2011. and you will find the exact version of RadEditor in your SharePoint application. If the migration is correct the version should be 2011.2 915.35

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
WebParts for SharePoint
Asked by
Chris
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Chris
Top achievements
Rank 1
Share this question
or