How do I stop FCKEditor from wrapping everything in paragraph tags? [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

How do I stop FCKEditor from wrapping everything in paragraph tags? [solved]

Post by tophers »

I'm trying to add a global content block in the sidebar of my site, and when I do FCKEditor wraps it in tags. I get this:

Code: Select all

<p>{global_content name='quick_facts'}</p>
And what I need is this:

Code: Select all

{global_content name='quick_facts'}
This occurs as soon as I move from Source view.

The extra causes formatting issues. This has also been affecting me with other instances (floating images in text, for instance). Is there a way to stop the editor form adding these in?

PS - FCKEditor keeps adding extra empty paragraph tags for no reason, with no regularity, in other content blocks - I'll make a text change, then find out it added an extra paragraph after a header photo…
Last edited by Anonymous on Wed Oct 24, 2007 2:33 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How do I stop FCKEditor from wrapping everything in paragraph tags?

Post by Dr.CSS »

Did you try tinyMCE and didn't like it?...
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: How do I stop FCKEditor from wrapping everything in paragraph tags?

Post by tophers »

mark wrote: Did you try tinyMCE and didn't like it?...
I hadn't tried TinyMCE - this is a project that has been going on for several months, and the version of CMSMS I installed still came with FCKEditorX. I just installed TinyMCE and it solved the problem.

Thanks for the help! And while I'm at it, thanks to you and the few others who seem to routinely patrol the forum and respond to so many questions.
Post Reply

Return to “CMSMS Core”