Issue Details (XML | Word | Printable)

Key: MDL-16621
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Petr Skoda
Reporter: Susan Mangan
Votes: 21
Watchers: 15
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Word Document style descriptor visible on Save using some wysiwyg editors and Online Text Assignment Activity in Firefox

Created: 23/Sep/08 05:31 AM   Updated: 27/Mar/09 12:03 PM
Return to search
Component/s: Assignment, HTML Editor
Affects Version/s: 1.8.6, 1.9.2
Fix Version/s: None

Environment: Firefox 3.0.1
Issue Links:
Relates
 

Database: MySQL
Participants: Deb Sarlin, Edith Lin, Elena Ivanova, Kenneth Newquist, Kevin Metcalf, Petr Skoda and Susan Mangan
Security Level: None
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
Word Document style descriptor becomes visible after clicking Save.

- cut and paste a line of text from a Word document (versions 2000 and 2003) into the submission of an Online Text Assignment (or) the Summary field of the Web Page resource (or) the Summary and HTML editor of the Wiki (only those tested so far)

- click save

Behavior only occurs when using Firefox 3.0.1, not IE 6.

Odd thing is that when using the Web Page resource, you can copy and paste the same line of text into the Summary and the HTML editor and on Save, only the Summary displays the style descriptor. The actual HTML editor seems to display fine. So, the problem doesn't appear to be linked to the editor itself.

Example style descriptor pasted below:

<!-- /* Font Definitions */ @font-face {font-family:"Trebuchet MS"; panose-1:2 11 6 3 2 2 2 2 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:7 0 0 0 19 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Trebuchet MS"; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Kevin Metcalf added a comment - 14/Oct/08 12:58 AM
My users are reporting this exact same issue. When looking at the post in "source view," I can see that the initial < and closing > have be converted to < and > respectively. Is it possible the Firefox 3 is interpreting the pasted HTML incorrectly? Has anyone looked at more recent version of FF 3 to see if that has solved the issue?

Edith Lin added a comment - 04/Nov/08 11:06 AM
My users use Quickmail and have the same problem. MS Word style descriptor shown at the top of the email. I'm looking forward to having a solution soon. Thanks!

Deb Sarlin added a comment - 05/Nov/08 12:40 AM
Very, very confusing to users!

Kenneth Newquist added a comment - 05/Nov/08 01:01 AM
I ran into this earlier in the semester. The basic problem is that Firefox 3 has changed the way it handles copy and pasting from other apps. This change means it gets extraneous code from Word, and the various WYSIWYG editors – which attempt to strip out said code – haven't caught up with it yet.

Here's a bunch of forum posts/tracker for TinyMCE and CKEditor which discuss possible solutions:

Ticket #2291: Simple copy & paste from Word document - extra code not stripped
http://dev.fckeditor.net/ticket/2291

Pasting from Word in Firefox 3 Doesn't Remove Meta/Style Tags
http://www.telerik.com/community/forums/thread/b311D-bgedka.aspx

Paste as Word: 'extra' code in Firefox
http://tinymce.moxiecode.net/punbb/viewtopic.php?id=12385

Paste from Word not converting Word comments
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=12405

So it's less a Moodle thing and more an HTMLArea thing, which would ultimately be solved in Moodle 2.0 when they upgrade to a different WYSIWYG editor (assuming said editor has updated its Word filters).


Elena Ivanova added a comment - 07/Feb/09 01:44 AM
p.s. IE 7 gives the same issue