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

Fix/paste images #4329

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

fernfei
Copy link
Contributor

@fernfei fernfei commented Apr 3, 2024

When copying only images in WPS Word, it will include <w:LatentStyles></w:LatentStyles>, causing the copied content to be the image path. Since browsers cannot access the user's file system, this leads to the inability to load the image.

`

<title></title> <style> @font-face { font-family: "Times New Roman"; }
    @font-face {
        font-family: "宋体";
    }

    @font-face {
        font-family: "黑体";
    }

    p.MsoNormal {
        mso-style-name: 正文;
        mso-style-parent: "";
        mso-style-next: 引言二级条标题;
        margin: 0pt;
        margin-bottom: .0001pt;
        mso-pagination: none;
        text-align: justify;
        text-justify: inter-ideograph;
        font-family: 'Times New Roman';
        mso-fareast-font-family: 宋体;
        font-size: 10.5000pt;
    }

    p.15 {
        mso-style-name: 页脚1;
        margin: 0pt;
        margin-bottom: .0001pt;
        mso-pagination: none;
        text-align: left;
        font-family: 'Times New Roman';
        mso-fareast-font-family: 宋体;
        font-size: 9.0000pt;
    }

    p.16 {
        mso-style-name: 段;
        margin: 0pt;
        margin-bottom: .0001pt;
        text-indent: 10.0000pt;
        text-align: justify;
        text-justify: inter-ideograph;
        font-family: 宋体;
        mso-hansi-font-family: 'Times New Roman';
        mso-bidi-font-family: 'Times New Roman';
        font-size: 10.5000pt;
    }

    p.17 {
        mso-style-name: 引言一级条标题;
        mso-style-next: 段;
        margin-left: 60.0000pt;
        text-indent: -36.0000pt;
        mso-pagination: none;
        text-align: justify;
        text-justify: inter-ideograph;
        font-family: 'Times New Roman';
        mso-fareast-font-family: 黑体;
        mso-ansi-font-weight: bold;
        font-size: 10.5000pt;
    }

    p.18 {
        mso-style-name: 引言二级条标题;
        mso-style-parent: 引言一级条标题;
        mso-style-next: 段;
        margin-left: 70.3500pt;
        text-indent: -21.0000pt;
        mso-pagination: none;
        text-align: justify;
        text-justify: inter-ideograph;
        font-family: 'Times New Roman';
        mso-fareast-font-family: 黑体;
        mso-ansi-font-weight: bold;
        font-size: 10.5000pt;
    }

    p.19 {
        mso-style-name: 页眉1;
        mso-style-next: 正文;
        margin: 0pt;
        margin-bottom: .0001pt;
        border-bottom: 1.0000pt solid rgb(0, 0, 0);
        mso-border-bottom-alt: 0.7500pt solid rgb(0, 0, 0);
        padding: 0pt 0pt 1pt 0pt;
        mso-pagination: none;
        text-align: center;
        font-family: 'Times New Roman';
        mso-fareast-font-family: 宋体;
        font-size: 9.0000pt;
    }

    p.20 {
        mso-style-name: "正文文字【小四,1\.5倍行距,首行缩进2字】";
        margin: 0pt;
        margin-bottom: .0001pt;
        text-indent: 24.0000pt;
        mso-pagination: none;
        text-align: left;
        line-height: 150%;
        font-family: 'Times New Roman';
        mso-fareast-font-family: 宋体;
        font-size: 12.0000pt;
    }

    span.msoIns {
        mso-style-type: export-only;
        mso-style-name: "";
        text-decoration: underline;
        text-underline: single;
        color: blue;
    }

    span.msoDel {
        mso-style-type: export-only;
        mso-style-name: "";
        text-decoration: line-through;
        color: red;
    }

    @page {
        mso-page-border-surround-header: no;
        mso-page-border-surround-footer: no;
    }

    @page Section0 {
    }

    div.Section0 {
        page: Section0;
    }</style>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants