Rank: Member Groups: Member
Joined: 11/23/2009 Posts: 27
|
Hi when using the Editor, by default it's applying <p> </p> on open to an empty editor. Is there any way to prevent this?
Many thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This is by design so that there will be "somewhere" to place the cursor, so there is no way to prevent this. If you wish to remove it, you can check whether the result is "<p> </p>" and replace it with an empty string in your code.
Thanks!
|
Rank: Member Groups: Member
Joined: 11/23/2009 Posts: 27
|
Ok thanks. Replacing it was my next option but thought I'd check first.
|