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
there has got to be a cleaner way. I'm running FCKEditor inside Drupal, and don't want to edit the core distribution of Drupal. Sad that I might have to use TinyMCE.
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
Code:
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
It looks like this fix the problem, but I didn't get a paragraph when i type Shift + Enter, even if i set the value
FCKConfig.ShiftEnterMode = 'p' ;.
Regarding this linkhttp://dev.fckeditor.net/ticket/1853 the problem was fixed, so the solution is to upgrade to the latest version.
Re: How to remove the opening <p> tag
Hello,
Let me share with you my own fix which works perfectly for me for CKEditor ver. 3.6.2.
Below file "/ckeditor/config.js" is correct:
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
Hello alfonsoml,
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
Hello again,