Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste From Word [PFW] doesn't read styles from document header. #8618

Closed
jswiderski opened this issue Dec 9, 2020 · 1 comment
Closed

Paste From Word [PFW] doesn't read styles from document header. #8618

jswiderski opened this issue Dec 9, 2020 · 1 comment
Labels
package:paste-from-office resolution:duplicate This issue is a duplicate of another issue and was merged into it. squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@jswiderski
Copy link

📝 Provide detailed reproduction steps (if any)

  1. Open CKEditor good amount of plugins installed (basic styles, font colors, font styles, lists)
  2. Open attached MS Word file
  3. Paste file contents into CKEditor
    Attachment: Sample CK Paste Document.zip

✔️ Expected result

Pasted content looks like in MS Word document.

❌ Actual result

Pasted content is missing: bold and some font styles: color navy, sizes, family.

📃 Other details

  • Browser: Any
  • OS: Any
  • CKEditor version: 23.1.0
  • Installed CKEditor plugins: pastefromoffice

From what I have checked, these styles are kept in document header and are only applied through classes, not inline styles e.g

<style>
...
p.RTabletextboldstyle9pts, li.RTabletextboldstyle9pts, div.RTabletextboldstyle9pts
    {mso-style-name:"R Table text bold style 9pts";
    mso-style-priority:99;
    mso-style-unhide:no;
    margin-top:3.0pt;
    margin-right:2.25pt;
    margin-bottom:0cm;
    margin-left:0cm;
    margin-bottom:.0001pt;
    line-height:10.0pt;
    mso-line-height-rule:exactly;
    mso-pagination:widow-orphan;
    font-size:9.0pt;
    mso-bidi-font-size:10.0pt;
    font-family:"Arial","sans-serif";
    mso-fareast-font-family:PMingLiU;
    mso-bidi-font-family:"Times New Roman";
    color:navy;
    letter-spacing:-.4pt;
    mso-ansi-language:EN-GB;
    mso-fareast-language:EN-GB;
    font-weight:bold;
    mso-bidi-font-weight:normal;
    mso-no-proof:yes;}
....
<p class=RTabletextboldstyle9pts style='margin-bottom:3.0pt;text-align:justify;
line-height:115%;background:white;mso-shading:navy;mso-pattern:solid white'><span
lang=EN-GB style='font-size:14.0pt;mso-bidi-font-size:10.0pt;line-height:115%;
mso-no-proof:no'>Valuation</span><span lang=EN-GB style='font-size:10.0pt;
line-height:115%;font-weight:normal;mso-no-proof:no'>: </span><span lang=EN-GB
style='font-weight:normal'>Lorem Ipsum&nbsp;is simply dummy text of the
printing and typesetting industry. <o:p></o:p></span></p>
...

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@jswiderski jswiderski added type:bug This issue reports a buggy (incorrect) behavior. package:paste-from-office labels Dec 9, 2020
@Mgsy Mgsy added the squad:core Issue to be handled by the Core team. label Mar 2, 2021
@Reinmar
Copy link
Member

Reinmar commented Nov 3, 2021

DUP of #10577

@Reinmar Reinmar closed this as completed Nov 3, 2021
@Reinmar Reinmar added the resolution:duplicate This issue is a duplicate of another issue and was merged into it. label Nov 3, 2021
@lslowikowska lslowikowska added the support:2 An issue reported by a commercially licensed client. label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:paste-from-office resolution:duplicate This issue is a duplicate of another issue and was merged into it. squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

4 participants