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

Soft Breaks vs. Hard Breaks?

2 Answers 86 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
bspolarich
Top achievements
Rank 1
bspolarich asked on 04 Sep 2007, 08:59 PM
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 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 05 Sep 2007, 07:22 AM
Hello,

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\4.3.2.0__1f131a624888eeed\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,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
bspolarich
Top achievements
Rank 1
answered on 06 Sep 2007, 01:44 PM
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.
Tags
WebParts for SharePoint
Asked by
bspolarich
Top achievements
Rank 1
Answers by
Lini
Telerik team
bspolarich
Top achievements
Rank 1
Share this question
or