Legacy Knowledge Base
Published Jul. 2, 2025

[CKEditor] Copy-pasting images in the editor does not work

Written By

Rita Schaff

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • Using CKEditor, after pasting a copied image, the image does not appear.

Environment

  • DXP 7.2

Resolution

  • This behavior is intended as the CKEditor plugin required for this functionality, Upload Image, is not a default plugin bundled with Liferay. Currently, images can only be pasted into the CKEditor if they were copied from Microsoft Word as the Paste from Word plugin is included in the default plugins bundled with Liferay.
  • The upload-image plugin (which allows copying and pasting) is not present in the CKEditor in DXP 7.2, the functionality was merged into the addimages CKEditor plugin, used by Alloy Editor and CKEditor DXP 7.3. For further information, please see 7.3 Breaking Changes.
  • Copying and pasting an image can behave differently based on multiple elements that are involved in the process:
    • OS
    • browser
    • application/tool
  • This means that in lots of cases, it is near to impossible to guarantee that copy-paste would work with all of these combinations.
  • A Feature Request ticket has been created at LPS-128607 to request support for the Upload Image CKEditor plugin in future versions of Liferay.

Copy-paste image from clipboard on Windows (image gets interpreted as an img type)

copying from a local machine:

  • ❌ Chrome Version 92.0.4515.107
  • ✔️ Firefox 78.12.0esr
  • ❌ IE11 version 20H2

copying from browser:

  • ✔️ Chrome Version 92.0.4515.107
  • ✔️ Firefox 78.12.0esr
  • ✔️ IE11 version 20H2

Copy-paste-image screenshot with snipping tool

  • ❌ Chrome Version 92.0.4515.107
  • ❌ Firefox 78.12.0esr
  • ✔️ IE11 version 20H2

Ubuntu Linux (image gets interpreted as text)

❌ copy and paste from the local machine will be pasted as a local path

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base