You are not logged in.
Pages: 1
Hi all,
whenever I edit a text, a new empty line gets inserted before the first line; this can be seen in the HTML tag view.
I ckecked my code, but there is definitely no new line coming from my textfield value. Even when I set my textarea.value to "test" in the java script code, you will see the additional line coming up.
Thanks for your help,
Kind regards,
Wolfgang
Offline
Just an update on this issue:
The problem is only under firefox. If I use Internet explorer and switch to the HTML source view, I only see one empty line in the beginning. I can update the record as often as I want, there are no additional empty lines inserted.
With firefox, with each save, the one line gets inserted.
Regards,
Wolfgang
Offline
I noticed this a little while ago. Did you bugtracker it? I took a look, but couldn't find a reasonable way to solve the issue
/edit hmm, looks like Yermo solved this one with AreaEdit, you can check it out at http://www.formvista.com/uploaded_html/ … xample.php
If you start Xinha with FF and delete all the WYSIWYG data and then view the source you'll always have <br /> there. Think that FCK and tinymce had the same bug as well, so it's probably a Mozilla issue we're working around
Think the bug is somewhere in HTMLArea.getHTMLWrapper, I haven't managed to track it down exactly yet. Thought this bug may have tied into the Mozilla issue of adding a <br /> to the end of every submission, doesn't look like it is though, as areaedit still has that issue as well
Last edited by PeteBest (2005-07-18 11:38:03)
Offline
After a bit more digging about it looks like the problem is with case 9: // Node.DOCUMENT_NODE in HTMLArea.getHTMLWrapper. You can resolve the issue by replacing the XINHA case with the one from Yermo's modified version. As to the exact nature of the problem I'd only be guessing
This resolves the <br /> being there when you load the editor, but it doesn't help with the only way of being able to remove a <br /> once it's there by going into the HTML mode. IE seems to deal OK with it, but Moz won't let it be removed
Offline
Pages: 1