Copy/Paste using the context menu doesn't work

Hello,

So, when using keyboard shortcuts to copy and paste it works fine, but when trying to use the context menu, the paste options is always dimmed so I can't paste.
I even found this bug in the demo here:
https://ej2.syncfusion.com/vue/demos/#/material/document-editor/default.html

Thanks,

3 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team March 3, 2021 01:33 PM UTC

Hi Omar, 

Retrieving the data from system clipboard in an automated way through script/code is denied as a part of browser security policy. In Document editor, we use our own context menu to display the Word editor specific menu items. So, retrieving the data from system clipboard through onclick event of our own context menu item is not possible and the paste option is in disabled state by default in Document editor.  
Whereas the browser’s native paste operation from system clipboard will work only on the user’s direct interaction like, keyboard shortcut ‘CTRL + V’ or browser’s built-in context menu paste option click. 
Hence, it is not possible to paste content from outside Document editor using context menu’s paste option. Use keyboard shortcut ‘CTRL + V’ which gets the data from system clipboard and pastes content to Document editor. 
Document editor provides an alternate solution to copy/cut and paste content within Document editor using context menu’s paste option. You can set enableLocalPaste property to true, to get this alternate solution working. By default this property is false. 

Regards, 
Suriya M. 



OM Omar March 12, 2021 10:15 AM UTC

Hi Suriya,

"it is not possible to paste content from outside Document editor using context menu’s paste option"
But I'm trying to copy/paste inside the same document not from outside.

In this demo, try to right click >> copy >> right click >> (paste is dimmed):
https://ej2.syncfusion.com/vue/demos/#/material/document-editor/default.html

Thanks,


SM Suriya Murugan Syncfusion Team March 15, 2021 06:07 AM UTC

Hi Omar, 
 
For your information, you have to enableLocalPaste property to allow copy and paste within control.To enable this property, enable local clipboard options on toolbar. 
 
 

After enabling this property, you can copy and paste within control using context menu options. 

Please check below video for reference: 


Please let us know if you have any questions. 

Regards, 

Suriya M. 


Marked as answer
Loader.
Up arrow icon