Page 1 of 1

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

Posted: Tue Oct 23, 2007 10:39 pm
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…

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

Posted: Wed Oct 24, 2007 6:32 am
by Dr.CSS
Did you try tinyMCE and didn't like it?...

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

Posted: Wed Oct 24, 2007 2:33 pm
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.