Page 1 of 1

fckeditorx paragraph autoformat question

Posted: Wed Aug 29, 2007 8:43 pm
by qzy
Hi there,


I'm on cmsms 1.1 and have 1.0.3 of fckeditorx. When I type anything to the fckeditor htmlarea I expreience, that content gets rounded by and tags automatically. Is there a way to make fckeditorx _not_ to do this?


Thanks,
Balint

Re: fckeditorx paragraph autoformat question

Posted: Thu Aug 30, 2007 6:11 am
by chrisl
You could try putting

Code: Select all

FCKConfig.EnterMode = 'br' ;		
FCKConfig.ShiftEnterMode = 'br' ;	
into

FCKeditorXcfg.js.php

in the modules/fckeditorX folder

at about line 33 after the ?> php end tag

You will have to clear cache and reload editing page if it is open.

Re: fckeditorx paragraph autoformat question

Posted: Thu Aug 30, 2007 12:35 pm
by qzy
Thanks for the idea, I'll try that.
However fckeditor puts surrounding paragraph tags even if the content is only one line long, without Enters either with or without shift.

Re: fckeditorx paragraph autoformat question

Posted: Thu Aug 30, 2007 7:15 pm
by chrisl
Yes WYSIWYG editors demand that you put in a P, BR, or DIVĀ  tag.

However if you start a pristine page and have BR as the 'enter' default there should be no paragraph tags just line-break tags.

Changing the default will not retrospectively clear all P tags.