Paste keeps disabled from the context menu

Hi Team,

How do I enable the Paste item in the context menu? The Copy works but not Paste menu which is not enabled. The issue also happens in the Document Editor Demo page.

3 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team February 12, 2021 05:49 AM UTC

Hi Hao, 
 
Syncfusion Greetings! 
 
Paste options in Context menu will enable if you enableLocalPaste as true. 
 
 
Please let us know if you have any questions. 
 
Regards, 
Suriya M. 


Marked as answer

HW Hao Wu February 16, 2021 02:35 AM UTC

Thanks for the reply. Yes, set enableLocalPaste as true the paste item will be enabled. But we to set it to false to enable the external copy/paste. Can the paste item be removed rather than be disabled if the enableLocalPaste  is false? Then I can add a customized menu item for the paste.
I have tried this.container.documentEditor.contextMenu.menuItems.splice but does not work.


SM Suriya Murugan Syncfusion Team February 16, 2021 09:01 AM UTC

Hi Hao, 

You can hide the existing context menu item and add the required item based on your requirement. 
 
 
Please check the documentation link for your reference(but it is in typescript platform): 
 

Please let us know if you have any questions. 
 
Regards, 
Suriya M. 


Loader.
Up arrow icon