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