When FckEditor initilized, the content value got the opening <p></p>
the content value display in the page, it got a extra paragraph
how to delete the opening <p></P>
or just let the <p></P> can not be generated when fckeditor is used
the content value display in the page, it got a extra paragraph
how to delete the opening <p></P>
or just let the <p></P> can not be generated when fckeditor is used

Re: How to remove the opening <p> tag
Re: How to remove the opening <p> tag
and change settings eg
FCKConfig.EnterMode = 'br' ; // p | div | br
FCKConfig.ShiftEnterMode = 'p' ; // p | div | br
Re: How to remove the opening <p> tag
When I check in my database where the info is stored, the data is still wrapped in <p> and </p> as shown below:
<p>1 more test for today</p>
Any way to make those tags go away???
Re: How to remove the opening <p> tag
Thanks,
TC~
Re: How to remove the opening <p> tag
lside = left(data,13)
lside = Replace(lside,"<p> </p>","")
rside = right(data,13)
rside = Replace(rside,"<p> </p>","")
middle = mid(data,14,last)
data=lside&middle&rside
It's ugly, but I hope it helps.
Re: How to remove the opening <p> tag
Re: How to remove the opening <p> tag
Useful if you use FCKeditor with Drupal, but a slight pain none the less.
It would be nice if you could have it use <div> instead of <p> though.
Re: How to remove the opening <p> tag
Re: How to remove the opening <p> tag
Re: How to remove the opening <p> tag
Re: How to remove the opening <p> tag
Thanks, Gary
Re: How to remove the opening <p> tag
http://dev.fckeditor.net/ticket/1853
Re: How to remove the opening <p> tag
CKEDITOR.editorConfig = function( config ) { config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P; };www.softmaker.pl
Re: How to remove the opening <p> tag
The syntax stated in previous posts is the correct one, but of course it will not work if you use CKEditor, in that case you must use the options that you've stated.
Re: How to remove the opening <p> tag
production version 3.6.2
"it will not work if you use CKEditor"
www.softmaker.pl
Re: How to remove the opening <p> tag
And the syntax in previous posts is this one for example: and clearly that won't work with CKEditor.
Again, the previous posts didn't explain anything wrong, it's just that you are trying to apply it to a wrong version. It's like seeing some code in Java and then stating that it's wrong because the correct syntax for C++ is this other one.
Re: How to remove the opening <p> tag
"How to remove the opening <p> tag"
www.softmaker.pl