IdRatherBeDesigning
09-11-2007, 09:08 PM
1) Script Title:
openWYSIWYG
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm
3) Describe problem:
Upon submitting, openWYSIWYG appears to add extra <span> and <br> tags to the user input.
I'm not sure at what point this is happening, but I also have a live preview that gets the text from the iframe element and displays it in a popup window so that the user can actually see what the page will look like on the final web page. I view the source on that preview and everything appears fine there, it is only after submitting that I see the extra code. Note -- the extra code doesn't appear to impact the updated display, I just see it in the source. I didn't realize this was happening until I was trying to implement a spell checker and it was picking up the duplicate <span> and </span> tags.
It seems to add more and more beginning and end <span> tags each time you update and submit.
Has anybody else had the same trouble?
Here's an example:
Original text, after formatting and BEFORE submitting:
<span style="font-size: 10pt; font-family: arial;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<br><br>
<span style="font-weight: bold;">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</span>
<br><br>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
</span>
becomes this AFTER submitting:
<span>
<span style="font-family: arial; font-size: 10pt;">
<span>
<span style="font-size: 10pt; font-family: arial;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<br><br>
<span style="font-weight: bold;">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</span>
<br><br>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
</span></span></span></span>
Any help at all would be appreciated.
Thanks!
openWYSIWYG
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm
3) Describe problem:
Upon submitting, openWYSIWYG appears to add extra <span> and <br> tags to the user input.
I'm not sure at what point this is happening, but I also have a live preview that gets the text from the iframe element and displays it in a popup window so that the user can actually see what the page will look like on the final web page. I view the source on that preview and everything appears fine there, it is only after submitting that I see the extra code. Note -- the extra code doesn't appear to impact the updated display, I just see it in the source. I didn't realize this was happening until I was trying to implement a spell checker and it was picking up the duplicate <span> and </span> tags.
It seems to add more and more beginning and end <span> tags each time you update and submit.
Has anybody else had the same trouble?
Here's an example:
Original text, after formatting and BEFORE submitting:
<span style="font-size: 10pt; font-family: arial;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<br><br>
<span style="font-weight: bold;">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</span>
<br><br>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
</span>
becomes this AFTER submitting:
<span>
<span style="font-family: arial; font-size: 10pt;">
<span>
<span style="font-size: 10pt; font-family: arial;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<br><br>
<span style="font-weight: bold;">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</span>
<br><br>
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
</span></span></span></span>
Any help at all would be appreciated.
Thanks!