Donate Share January 2009: Project of the Month

TinyMCE

Tracker: Bugs

5 Problems with Plugin Paste form Word - ID: 2086636
Last Update: Comment added ( spocke )

User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1 (.NET CLR 3.5.30729)
Screen info: 1280x1024x32

Description of problem:

Steps to reproduce:
1. Use Example with Plugin Paste to word
2. Open Word Document (see Attachment) and select all (CRTL+A) and copy it
to Clipboard
3. Use Button "copy to word" in TinyMCE and CTRL+V and insert Button
4. Look Code by usind the "Edit HTML Button"

The following ist shown:

<p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ProgId" content="Word.Document" />
<meta name="Generator" content="Microsoft Word 11" />
<meta name="Originator" content="Microsoft Word 11" />
<link rel="File-List"
href="file:///C:%5CDOKUME%7E1%5Chardy2010%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C
01%5Cclip_filelist.xml" />
</p>
<!--[if gte mso 9]><xml>

Normal
0
21


false
false
false







MicrosoftInternetExplorer4

</xml><![endif]--><!--[if gte mso 9]><xml>


</xml><![endif]-->
<p>
<style><!--

--></style>
</p>
<!--[if gte mso 10]>
<mce:style><!
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Normale Tabelle";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
-->
<p>&nbsp;</p>
<!--[endif]-->
<p>Dynamik an allen Ecken und Enden</p>
<p>ht. LEIPZIG, 20. August. &bdquo;Der Spielemarkt ist heute mindestens so
bedeutend wie die Film- oder Musikindustrie. Mit einem Unterschied: Er
w&auml;chst
rasant", </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ProgId" content="Word.Document" />
<meta name="Generator" content="Microsoft Word 11" />
<meta name="Originator" content="Microsoft Word 11" />
<link rel="File-List"
href="file:///C:%5CDOKUME%7E1%5Chardy2010%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C
01%5Cclip_filelist.xml" />
<!--[if gte mso 9]><xml>

Normal
0
21


false
false
false







MicrosoftInternetExplorer4

</xml><![endif]--><!--[if gte mso 9]><xml>


</xml><![endif]-->
<style><!--

--></style>
<!--[if gte mso 10]>
<mce:style><!
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Normale Tabelle";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
-->
<!--[endif]-->
</p>



Hardy2010 ( hardy2010 ) - 2008-09-01 11:14

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 6 )

Date: 2008-09-09 18:37
Sender: spockeProject Admin

Probably this week.


Date: 2008-09-09 18:21
Sender: pepiacebo

When is TinyMCE 3.1.2 due to be available with this fix?


Date: 2008-09-08 20:34
Sender: spockeProject Admin

I must have missed a few things. I've now verified that it removed all word
crap like link, meta, style and comments.


Date: 2008-09-08 17:37
Sender: wmgtam

I have just downloaded the latest codebase from SVN, which is supposed to
fix this wordpaste/FF3 promblem. It does not fix the problem.

Browser: FF 3.01
OS: XP
version 3.1.2 (dev) includes r918
init settings --

tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "inlinepopups,advimage,media,spellchecker,paste,safari",
theme_advanced_styles : "Image Left=image-left;Image Right=image-right",
theme_advanced_blockformats : "p,h3,h4",
theme_advanced_buttons1 :
"formatselect,spellchecker,separator,bold,italic,strikethrough,separator,indent,outdent,separator,bullist,numlist,separator,link,unlink,separator,image,media,separator,pasteword,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_path : false,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
valid_elements :
"a[name|href|title|target],img[src|alt|title|width|height|class|style],strong/b,em/i,hr,p,br,ol,ul,li,h3,h4,strike,blockquote,table[border|title|width|height|class|style],tr,td,th",
extended_valid_elements : "object[align<bottom?left?middle?right?"
+"top|archive|border|class|classid"
+"|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name"
+"|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
+"|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap"
+"|vspace|width],"
+"param[id|name|type|value|valuetype<DATA?OBJECT?REF],"
+"embed[src|height|width|flashVars|base|name|type|pluginspage|swLiveConnect|allowScriptAccess],iframe[src|height|width]",
relative_urls : false,
remove_script_host : false,
button_tile_map : true,
width:570,
mode: "exact",
elements: "text",
oninit: "initWYSIWYG"
});



Code that appears in source HTML after using wordpaste button
<p><!--[if gte mso 9]><xml> Normal 0 false false false
MicrosoftInternetExplorer4 </xml><![endif]--><!--[if
gte mso 9]><xml> </xml><![endif]--><!--[if !mso]><span
class="mceItemObject"
classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></span>
<mce:style><! st1\:*{behavior:url(#ieooui) } --> <!--[endif]--><!-- /*
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:"Times New
Roman"; mso-fareast-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;} --><!--[if gte mso 10]> <mce:style><! /*
Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0;
mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in
5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New
Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400;
mso-bidi-language:#0400;} --> <!--[endif]-->




Date: 2008-09-05 17:56
Sender: wmgtam


I can also confirm that this only happens with Firefox 3, but that it is
very replicable in Firefox 3, pasting from Word 2003, on Windows XP and
Vista. The junk HTML is displayed as visible text in Internet Explorer 6
and 7, because IE doesn't recognize <!--[ as the beginning of a comment,
because it wants a space after the second dash.

This bug happens with both 3.1.1 and 2.1.3 .




Date: 2008-09-04 12:57
Sender: eyedam


I have Word-content clean-up enabled (and manually imporoved), and I have
a similar problem; probably the cause is the same, although I have far less
extra data. :)

So, when I paste from Word (2003), before the actual text, I get this
code:

------------
<!--[if gte mso 9]><xml> Normal 0
MicrosoftInternetExplorer4 </xml><![endif]--><!-- --><!--[if gte mso 10]>
<mce:style><! /* Style Definitions */ table.MsoNormalTable
{mso-style-name:"Parasta tabula"; mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan;
font-size:10.0pt; font-family:"Times New Roman";} -->
------------

It appears only if I use Firefox 3. There is no problem with Firefox 2 or
Internet Explorer 7.

And believe it or not, it may screw the display of content in IE7 pretty
much under certain circumstances. ;)


Attached File ( 1 )

Filename Description Download
word_paste2tinymce2.doc Example pste2 TinyMCE Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2008-09-08 20:34 spocke
resolution_id None 2008-09-08 20:34 spocke
close_date - 2008-09-08 20:34 spocke
File Added 291603: word_paste2tinymce2.doc 2008-09-01 11:14 hardy2010