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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Configuring the FCK EditorConfiguring the FCK Editor
Previous
 
Next
New Post
5/5/2009 5:30 AM
 

 Hi All,

I am wondering if anyone has any feedback or suggestions on how to accomplish the following things with the FCK editor:

1)  When the FCK editor starts up and has no content in it, it defaults to <p></p>.  I would like to make it default to <div></div>

2)  When I save content that has used the FCK editor, if it is "empty" (it looks empty and appears to have no content in it) it saves <p></p>.  Instead, I want it to save an empty string.

Thanks!

 

 
New Post
5/5/2009 6:26 AM
 

Hi Tony.

I do not know how to replace the <p>-Tags with <div> tags, but at least i know how to make an "empty" thing really an empty thing.

Set

FCKConfig.FillEmptyBlocks to false ;

This setting can be found in:

One here: [dnnroot]\Providers\HtmlEditorProviders\Fck\FCKeditor\fckconfig.js
One here: [dnnroot]\Providers\HtmlEditorProviders\Fck\Custom\fckconfig.js
And the last here: [dnnroot]\Providers\HtmlEditorProviders\Fck\FCKeditor\editor\_source\internals\fckconfig.js
but I only found it in the first two places .

Cheers Kai

 
New Post
5/5/2009 6:45 AM
 

 Awesome.  Thank you very much!

Do you have any suggestions on how should I handle that so that those settings do not get overwritten when performing an upgrade?

 
New Post
5/5/2009 7:33 AM
 

As you have to have a plan when doing upgrades you can write a document just for yourself. We are all human and are going to forget things from time to time.

I did it i think between 4.7 and 4.8 or so.....

Just a plain doc with some "consider this, remember that", steps to be done beforehand and so on

Unfortunately i don't know about any tool or a way doing such small changes in these files. It would be easy with XML or something similar structured....
But as the files itself could be changed during upgrade you have to search and paste the changes again.

So, take these lines, place them in a txt-file and make a reference in your "How to Upgrade.Doc"

Kai

 
New Post
5/5/2009 9:45 AM
 

you can use your own "mycustom.js" and reference in web.conflg.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Configuring the FCK EditorConfiguring the FCK Editor


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