|Project:||FCKeditor - WYSIWYG HTML editor|
I am using the latest version of FCKEditor - 2.6.4
I have a problem with FCKEditor adding a
tag to empty textarea fields on which FCKEditor appears.
The Body field setup to handle HTML. It works fine as a FCKEditor field. Body is not required and often will not contain any content. When I go to add a node, I fill out the form and leave the Body field empty. I view source to verify that there are no spaces and no characters between the open and closing textarea tags. All looks good.
I save the node and view the database and I see "
" in the field. and the "View", read-only display of the node. The Body field is outputting a
After I save, click on edit and the view source, I see the following in the textarea tag for the Body field: <br />
I have "Enter mode" and "Shift + Enter mode" set to "
I've done some searching in Google, and I am a bit surprised that I haven't found more reports of this problem. But I did find this:
And person was having the same issue:
It would be great if there was some function to strip off trailing
tags when submitting -- something like:
rtrim($body, "<br />");