Ticket #2601 (closed Bug: invalid)
Copy/paste from open office
| Reported by: | thecrazyspy | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | FCKeditor 2.3.2 |
| Keywords: | Cc: |
Description
Hello,
I have a problem when copy/paste text from open office. It keeps me own tags to open office. Is it possible to have a button like a copy and paste Word?
Thank you
Change History
comment:2 Changed 5 years ago by thecrazyspy
Yes "paste from Word" it's OK. My code : <meta content="text/html; charset=utf-8" http-equiv="CONTENT-TYPE" /> <title></title> <meta content="OpenOffice.org 3.0 (Win32)" name="GENERATOR" /><style type="text/css">
<!--
@page { margin: 2cm } P { margin-bottom: 0.21cm }
--> </style>
<p style="margin-bottom: 0.5cm;"><font size="2">Nous avons les clefs privées et certificats du client et du serveur OpenVPN</font></p> </p>
comment:4 Changed 5 years ago by thecrazyspy
Even with this button I left the tags <meta content="OpenOffice.org 3.0 (Win32)" name="GENERATOR" /> <style type="text/css">, the text comes from open office rather than word
comment:5 Changed 5 years ago by arczi
- Keywords Confirmed added; Pending removed
- Version changed from FCKeditor 2.6.3 to FCKeditor 2.3.2
comment:6 in reply to: ↑ 1 Changed 3 years ago by tuanpham
Replying to arczi:
Does "Paste from Word" button work correctly? Please attach your source code to see the problem.
Hi, I meet the same problem when I copy an cell data from spreadsheet of open office to fck editor, then I put to source button on the tool bar I saw the editor auto passing this :
<p>Version:1.0 StartHTML:0000000155 EndHTML:0000000697 StartFragment:0000000475 EndFragment:0000000680 <meta content="text/html; charset=utf-8" http-equiv="CONTENT-TYPE" /> <title></title> <meta content="OpenOffice.org 3.1 (Unix)" name="GENERATOR" /> <style type="text/css">
<!-- BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Arial"; font-size:x-small }
-->
</style>
<table rules="NONE" cols="1" cellspacing="0" border="0" frame="VOID">
<colgroup><col width="100" /></colgroup> <tbody>
<tr>
<td height="18" align="LEFT" width="100">test data from cell</td>
</tr>
</tbody>
</table> </p>
So for the <style type="text/css">
<!-- BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Arial"; font-size:x-small }
-->
</style>
it ruins the error when we view the detail content, It will add font effect to all BODY, DIV ...
I just tried with new version of CKEditor as :3.2 and it sill cause this bad case.

Does "Paste from Word" button work correctly? Please attach your source code to see the problem.