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

6 posts, 0 answers
  1. Chris
    Chris avatar
    5 posts
    Member since:
    Oct 2011

    Posted 01 Nov 2011 Link to this post

    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?
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 01 Nov 2011 Link to this post

    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

  3. Chris
    Chris avatar
    5 posts
    Member since:
    Oct 2011

    Posted 01 Nov 2011 Link to this post

    Hi Rumen,

    That's great news. Any estimate as to when this update will be integrated into a public release of RadEditor for SharePoint?
  4. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 02 Nov 2011 Link to this post

    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
  5. Chris
    Chris avatar
    5 posts
    Member since:
    Oct 2011

    Posted 07 Nov 2011 Link to this post

    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.
  6. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 09 Nov 2011 Link to this post

    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
Back to Top