Page 1 of 1

Tiny MCE WYSIWYG Editor Does Not Retain Paragraph Breaks During Copy-Paste

Posted: Mon Oct 13, 2008 11:31 pm
by vidya
I am running CMSMS  version 1.4.1 on the following server software:

Apache/1.3.34 (Debian) mod_gzip/1.3.26.1a AuthMySQL/4.3.9-2 PHP/5.2.0-8+etch10

I have Tiny MCE version 2.4.5 installed and my problem is this:

When I copy-paste from Word, or even from Word to TextEdit (Mac text editor) and then into the Tiny MCE WYSIWYG editor, it does not bring across the paragraph breaks. Rather, it inserts line break tags () to demarcate the spacing between the paragraphs. While visually everything looks fine, from an accessibilty point of view, this is not good because screen readers will not see the content as discrete paragraphs.

This is what my content looks like visually:
It’s that time of year again!  The residents of the Bridlewood Park Subdivision are raising money for our National Night Out event, which will be held on October 7th this year in Texas.  We are a relatively new neighborhood, established in late summer 2005, and this is only our second year of participation in the National Night Out event.

You can help make our event a success by donating an item, a gift certificate or services for us to use during the evening of our National Night Out.  Please remember that all in-kind and cash donations are tax-deductible to the fullest extent of the law. 

The residents of the Bridlewood Park subdivision are excited about National Night Out this year, and we hope to have a successful event in which to bring our community together for the purpose of crime and drug prevention.  Your donation will contribute greatly to the much-needed funding of our event.


This is what the HTML source looks like:

Code: Select all

<p>It’s that time of year again!  The residents of the Bridlewood Park Subdivision are raising money for our National Night Out event, which will be held on October 7th this year in Texas.  We are a relatively new neighborhood, established in late summer 2005, and this is only our second year of participation in the National Night Out event.<br /><br />You can help make our event a success by donating an item, a gift certificate or services for us to use during the evening of our National Night Out.  Please remember that all in-kind and cash donations are tax-deductible to the fullest extent of the law.  <br /><br />The residents of the Bridlewood Park subdivision are excited about National Night Out this year, and we hope to have a successful event in which to bring our community together for the purpose of crime and drug prevention.  Your donation will contribute greatly to the much-needed funding of our event.</p>
I would appreciate any suggestions to resolve this issue. Accessibility is important on this website, and my content creators are not HTML-savvy, so I need a WYSIWYG editor for them to easily create accessible content.

Many thanks,

Vidya

Re: Tiny MCE WYSIWYG Editor Does Not Retain Paragraph Breaks During Copy-Paste

Posted: Tue Oct 14, 2008 6:45 am
by Russ
TinyMCE (in admin) has settings to make paragraph breaks as a (as it should be) or for people who like that. So just change it. If you are pasting raw HTML then make sure you put the editor in 'view html' mode before pasting, otherwise things tend to get stripped of formatting. This is to try and ensure valid HTML. There are also settings to reformat text to make it valid etc...

Re: Tiny MCE WYSIWYG Editor Does Not Retain Paragraph Breaks During Copy-Paste

Posted: Tue Oct 14, 2008 7:44 am
by Dr.CSS
The best thing to do is just type the text into tiny instead of pasting... sorry...

Re: Tiny MCE WYSIWYG Editor Does Not Retain Paragraph Breaks During Copy-Paste

Posted: Tue Oct 14, 2008 3:48 pm
by vidya
Russ wrote: TinyMCE (in admin) has settings to make paragraph breaks as a (as it should be) or for people who like that. So just change it. If you are pasting raw HTML then make sure you put the editor in 'view html' mode before pasting, otherwise things tend to get stripped of formatting. This is to try and ensure valid HTML. There are also settings to reformat text to make it valid etc...
I do have it set to make paragraph breaks as a , but it only works when I hit the Enter key in the WYSIWYG editor, it doesn't work while pasting into the editor. Looks like I'm clean out of options here. Is there another editor I could try? I couldn't get FCKEditor to work either. When I installed it, the toolbar wouldn't even show up!

Re: Tiny MCE WYSIWYG Editor Does Not Retain Paragraph Breaks During Copy-Paste

Posted: Tue Oct 21, 2008 4:59 am
by Dr.CSS
The other option is to turn tiny off, in page edit/make mode, and paste it in then add to the front of each paragraph and when they turn tiny back on it will add the ...

or they could hit the format drop to make a paragraph then paste the first paragraph in, then hit enter and paste the second one in, hit enter and paste the next one in, etc. etc.... this will give them a paragraph break for each one, not as quick as pasting every thing at once but it works and no coding involved...

[Solved] Tiny MCE Doesn't Retain Paragraph Breaks During Copy-Paste

Posted: Tue Oct 21, 2008 2:38 pm
by vidya
Yep, those were the same options I came up with as well. Thanks a bunch!

Think I'll mark this thread as solved for now since there really seems to be no easy solution ;-).