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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorFCK adds ' when in rich text mode' />FCK adds '

' when in rich text mode

Previous
 
Next
New Post
7/6/2007 7:39 PM
 

Is ther eany wat to have FCK NOT add the paragraph tag? We atre trying to use it on a custom module that has 4 ritch text regions but simply cannot acheive the desired look because any layoput is broken by the added <p> tags. I could sure use dome guidance on this thing. I have searched high and low and seem to find refrences to it pertaining ot the whole <br /> replacement thing but not as a wrapper of the entire entry.

 

For example if I enter "This is a test" into the text area and then view source the markup is "<p>This is a test</p>". thie same is true if I enter the same int othe source screen and save it then open it back up.

 

Any advice would be greatly appericated.

dycmark

 

 
New Post
7/7/2007 9:56 AM
 

As always it can help to search these forums before asking again. No problem, here is the answer:

The paragraph is the default behavior of this editor and also for most editors out there including the MSWord.

The P tag is generated to give you full control of your paragraphs via css (Line spacing, indent, etc)

You can change the default behavior by editing the Providers\HtmlEditorProviders\Fck\Custom\fckconfig.js file

and changing the FCKConfig.EnterMode property. Possible values are sampled in that file (P,DIV,BR)

Note: When the normal behavior is P you can override it when editing by pressing SHIFT+ENTER


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
7/22/2007 5:31 PM
 

Thanks Locopon, however I'm not 100% sure from your answer, but is it possible to not wrap the contents of the editor with any tag? 

I understand using linebreaks etc, but it's very annoying having the content in the text editor wrapped with the P tag and from your answer it looks like we can then choose to change what tag wraps the 'content', but is it possible to set it up so it doesn't use any tag wrapper?

I.e. if I wanted to add a text/html module which contained the text "this is the text", entering the text into the rich text editor would see html added similar to:

<container tag (div) >
  <p>This is the text</p>
</container tag (div) >

Where we would like it to simply be:

<container tag (div) >
  This is the text
</container tag (div) >

It's then optional if we want to add a P tag, not the default. Does this make sense?  Is this possible?

Thanks,

Reuben.


for info on our website DNN skinning, feel free to check out our website at: www.spwd.co.nz
 
New Post
7/22/2007 9:12 PM
 

You can switch between P, BR and DIV

I think the one you are looking for is BR

To change this your must editor the custom/fckconfig.js file and change the EnterMode Property to 'br'

To make it clear for you, the way the content is created in your sample could be correct if we are talking of a text/html module. There are a lot of modules that use different ways to included the content that was received from the editor.

Hope this helps


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
2/27/2008 7:25 AM
 

The problem is not so much the linebreak, but that FCK adds <p> </p> even when you do not have any linebreaks.

For instance if I click source, removes <p> </p> wrapping around my content and saves, everything looks swell, and the <p></p> is not there.

But if I just go back in edit mode, without changing anything, and click Update, the <p></p> is added back around my content.

 

This is very anoying especially as I am using a Rich text field in a User Defined Table, and this <p></p> around my content screws up the tables and alignments.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorFCK adds ' when in rich text mode' />FCK adds '

' when in rich text mode



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