Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Single Line Spacing in FCKEditorSingle Line Spacing in FCKEditor
Previous
 
Next
New Post
4/18/2008 9:49 AM
 

Is there a way to have the FCKEditor default to only adding one line aka </br> instead of two lines <p> when a user presses the enter button? I know you can press space+enter to get a single line return but most of my typical clients don't and was asking me if there was a way to have it do single spacing by default.

Thanks

 
New Post
4/18/2008 10:20 AM
 

Go and find the fckconfig.js file:

~/Providers/HtmlEditorProviders/FCK/FCKEditor/fckconfig.js

Then find the line that sets the "EnterMode".  It will look like this:

FCKConfig.EnterMode = 'p' ;

Change that to this:

FCKConfig.EnterMode = 'br' ;

The other option is to use "div".


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
4/18/2008 10:33 AM
 

This behavior can be set in the fckconfig.js file located in \Providers\HtmlEditorProviders\Fck\FCKeditor.

The settings you are looking for are EnterMode and ShiftEnterMode, and should be located next to one another.  Setting EnterMode to br and ShiftEnterMode to p should result in your desired behavior, however the FCKeditor wiki gives a strong recommendation as to why EnterMode should be left at its default setting of p.

 


Brad Montgomery
Engage Software
St. Louis, MO
314.966.4000

 
New Post
4/19/2008 6:46 PM
 

Thanks for the info. Just to note: and this could be part of my provider but I had to create a custom config file and set the customconfigpath before the changes would take place, but after doing that everything worked perfectly. I went with using <div> tags cause it still keeps things inclosed in blocks, but creates the single line option. I also use <div> tags for most of my custom style tags, so it fits right in to my compliance standards.

 
New Post
4/19/2008 7:36 PM
 

Hey Star,

Check out this post. There is more that one place to change it!

Please, we really need a change in FCK: make it easy to pick the default font and size for an entire installation; make the default be <br> and not <p>. I have dozens and dozens of emails from clients on these issues. It is a major problem and time suck.

Thanks,

Will

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Single Line Spacing in FCKEditorSingle Line Spacing in FCKEditor


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out