Message Boards

Copy paste image from Mail, Word to CKEditor 4.11.4 is not working

Ronak Parekh, modified 3 Years ago.

Copy paste image from Mail, Word to CKEditor 4.11.4 is not working

New Member Posts: 10 Join Date: 11/5/20 Recent Posts

Hello Team,

We are using Liferay DXP 7.2(liferay-dxp-7.2.10-ga1). We have CKEditor field in custom form. CKEditor version is 4.11.4. Now user wants to copy paste image from Mail(Lotus Notes), Word, PPT or using snipping tool to ckeditor but we can't able to copy paste image in existing version of CKEditor.

How I can provide this functionality in existing version of CKEditor or how I can upgrade/update CKEditor to specific latest version 4.15.1 in Liferay DXP 7.2.

Please help.

thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: Copy paste image from Mail, Word to CKEditor 4.11.4 is not working

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

Hi,

I see already ckeditor in liferay is doing to copy paste operation, do u have any specific scenario not working ?

Also if you refer below link it has list of plugins , some referring to copy/paste (clipboard,pastefromword,pastetext) you can try adding them and check

https://help.liferay.com/hc/en-us/articles/360017892052-Introduction-to-CKEditor-Plugin-Reference-Guide-

Ronak Parekh, modified 3 Years ago.

RE: RE: Copy paste image from Mail, Word to CKEditor 4.11.4 is not working

New Member Posts: 10 Join Date: 11/5/20 Recent Posts

Hi Yasin,

Although plugins are already there user is not able to copy/paste image to CKEditor(4.11.4) from word in chrome browser and as per my knowledge in recent updates of ckeditor even in chrome browser we can copy/paste images as they have added some new plugins related to inserting images to ckeditor.

Even I have tried to find ckeditor.js so that I can override it to specific version but I didn't find ckeditor.js file in source code of frontend-editor-ckeditor-web module. It is loaded in resources.jsp like below:

<script data-senna-track="temporary" src="<%= HtmlUtil.escapeAttribute(PortalUtil.getStaticResourceURL(request, themeDisplay.getCDNHost() + PortalWebResourcesUtil.getContextPath(PortalWebResourceConstants.RESOURCE_TYPE_EDITOR_CKEDITOR) + "/ckeditor/ckeditor.js", javaScriptLastModified)) %>" type="text/javascript"></script>

 

Prior to Liferay 7 we can override ckeditor version by creating hook. Is anyone knows how we can provide copy paste images from word functionality in chrome browser or how we can upgrade to specific version of ckeditor?

Please help.

Thank you.