Soft Breaks vs. Hard Breaks?

3 posts, 0 answers
  1. bspolarich
    bspolarich avatar
    6 posts
    Member since:
    Apr 2007

    Posted 04 Sep 2007 Link to this post

    I'm prototyping something in WSS3 that will use a wiki, and I need some of the functionality in the Telerik editor to make it work in a reasonably intuitive way.

    When I edit the wiki page and try to do basic formatting, I notice that ENTER generates a soft break <br>.  I need hard breaks sometimes so I can center the title, but not the rest of the content, etc.  If I hit CTRL+ENTER, I get this error:

    "Could not find the command InsertParagraph.  Please update your command list."

    How do I get this to work?  A rich text editor without <P> is kind of crippled.
  2. Lini
    Lini avatar
    2144 posts

    Posted 05 Sep 2007 Link to this post


    The insert paragraph command is not included in the Lite version of the RadEditor for MOSS. It is only present in the regular version. You can try the following workaround - open the ListConfigFile.xml from \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\\RadControls\Editor\ and add this property:

      <property name="NewLineBr">false</property>

    This will instruct the editor to insert paragraphs (<p>) instead of brakes (<br>) when you press enter. If you still want to insert breaks, use Shift+Enter.

    I understand that this might not be the best solution so I will talk to the dev team to add the insert paragraph command into the next lite editor version.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. bspolarich
    bspolarich avatar
    6 posts
    Member since:
    Apr 2007

    Posted 06 Sep 2007 Link to this post

    That approach actually works fine in my mind -- ENTER should generate a "hard return" (i.e. <P>) and SHIFT+ENTER generates a "soft return" (i.e. <BR>).  This works like Microsoft Word does, which is what a lot of folks are used to in terms of the behaviours of a "rich text editor".

    I don't see any feature requirements needed.  I would kindly suggest that this should be the default configuration though.
Back to Top