Skip to content

When copy pasting text from Word, it is pasted as image, not text #2923

Closed

Description

@hovereffect

Hello,

Here's the issue:
When copy-pasting some text from Microsoft Word to a text file, it is pasted as an image, not as text itself.

Is there any workaround?
Thank you

Activity

  1. vinicius73 commented on Sep 29, 2022

    @vinicius73
    Member

    Could you use the issue template with more information about this bug @fr-olivier ?

  2. susnux commented on Sep 29, 2022

    @susnux
    Contributor

    I think the problem is if your text contain images or drawings they are added to the clipboard, e.g. copying from excel results in a clipboard entry including: text/html,text/rtf,text/plain,Files
    Same if you copy from word.

    In this case the Files are a screenshot of the copied part.

  3. hovereffect commented on Nov 22, 2022

    @hovereffect
    Author

    I think the problem is if your text contain images or drawings they are added to the clipboard, e.g. copying from excel results in a clipboard entry including: text/html,text/rtf,text/plain,Files Same if you copy from word.

    In this case the Files are a screenshot of the copied part.

    No, because even when copy/pasting a few words from Word, it is pasted as a screenshot.

  4. hovereffect commented on Nov 22, 2022

    @hovereffect
    Author

    Could you use the issue template with more information about this bug @fr-olivier ?

    Describe the bug
    When copying text from a local document in Microsoft Word (eg even a few words), it is pasted as a screenshot image ans not as classic text.

    To Reproduce
    Steps to reproduce the behavior:

    1. Create a text document in Nextcloud
    2. Copy some words from a docx Word file that is on your computer
    3. Paste it in the Nextcloud text document

    Expected behavior
    It is supposed to paste text, not an image.

    Screenshots
    If applicable, add screenshots to help explain your problem.
    screenshot 2022-11-22 à 15 19 55

    Client details:

    • OS: Mac OS Monterey
    • Browser: Chrome
    • Version: 107.0.5304.110 (Build officiel) (x86_64)
    • Device: desktop
    Server details

    Text app version: 3.5.1 (see Nextcloud apps page)

    Operating system: Linux

    Web server:

    Database: mysql

    PHP version: 8.1.11

    Nextcloud version: 24.0.3

    Logs

    Nextcloud log (data/nextcloud.log)

    Insert your Nextcloud log here
    

    Browser log

    Insert your browser log here, this could for example include:
    
    a) The javascript console log
    b) The network log
    c) ...
    
  5. juliusknorr commented on Nov 22, 2022

    @juliusknorr
    Member

    Seems like what @susnux described that word is sharing multiple formats and the image paste handling takes precedence there while it shouldn't.

  6. mejo- commented on Oct 21, 2025

    @mejo-
    Member

    Just stumbled upon https://github.com/Intevation/tiptap-extension-office-paste. No idea if it fixes the problem, but code looks promising to fix some issues when pasting from word at least.

  7. juliusknorr commented on Oct 22, 2025

    @juliusknorr
    Member

    https://evercoder.github.io/clipboard-inspector/ may also be helpful for anyone looking further into this

  8. mejo- commented on Jul 28, 2026

    @mejo-
    Member

    This finally got fixed with #8897.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions