I need to have the <p></p> that are automatically added by TinyMCE at the very beginning and the end removed.
How?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found http://tinymce.moxiecode.com/wiki.php/TinyMCE_FAQ#Select_if_default_text.2C_then_delete_when_typing_starts.3F , you may want to take a look at that.
You could use javascript (jquery) and do something like
Or you could use PHP (or any other serverside script) to remove it, with a regular expression.
http://php.net/manual/en/function.preg-replace.php
This helps write regular expressions: http://gskinner.com/RegExr/
Good luck.