I've created a page in my CMS that displays a list of people, each with their own photo. I'm using FCK Editor to insert the photos. The problem is that the editor automatically surrounds the images with a paragraph tag. But I really don't want the image to have extra space around it.
Is there a way to prevent FCK Editor from wrapping my images in a paragraph tag?
I tried changing the following line in fckconfig.js:
FCKConfig.EnterMode = 'p' ;
to
FCKConfig.EnterMode = 'br' ;
...but it didn't help.
Is there a way to prevent FCK Editor from wrapping my images in a paragraph tag?
I tried changing the following line in fckconfig.js:
FCKConfig.EnterMode = 'p' ;
to
FCKConfig.EnterMode = 'br' ;
...but it didn't help.
Re: Automatic paragraph tag
Re: Automatic paragraph tag
var strTagStrippedText = strTaggedText.replace(/<\/?[^>]+(>|$)/g, "");
by using this u can eliminate the html tags which are surrounded defaultly.
Re: Automatic paragraph tag
I'm sorry to say, I'm more of a designer than a programmer. Could you please tell me in which file I need to place this code to get it to work? Does it go in the "fckconfig.js" file?