Opened 12 years ago

Closed 12 years ago

#9275 closed Bug (invalid)

Paste from word instead of paste in context menu

Reported by: sarath Owned by:
Priority: Normal Milestone:
Component: UI : Context Menu Version: 3.6.4
Keywords: Cc:

Description

Hi,

I would like to know if it is possible to trigger paste from word feature instead of paste in the context menu (mouse right click)?

I want behavior similar to below:-

<!-- forces cmd+v to show pastefromword popup. -->

config.keystrokes =[ [ CKEDITOR.CTRL + 86 /*V*/, 'pastefromword'] ];

Thanking in advance.

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Keywords: paste from word removed
Resolution: invalid
Status: newclosed

Please note that the CKEditor development website is not the right place for support requests.

Please refer to the following article for information on where to get support for all issues related to CKEditor: http://docs.cksource.com/CKEditor_3.x/Howto/Support

Also try using our forums for advice: http://cksource.com/forums/

If you are looking for professional assistance, the CKEditor development team is available via a dedicated support channel that is included in all our commercial licenses: http://ckeditor.com/license


About your question. I'm not sure if this is doable.

You could experiment with clipboard plugin.
Since this is core CKEditor file you need to download SVN version of CKEditor modify plugin (ckeditor/_source/plugins/clipboard/plugin.js) and build new release.

Easier approach would be to simply remove paste plugin and paste element from context menu like this:

var editor = CKEDITOR.replace( 'editor1',{removePlugins: 'pastetext'});		
editor.on( 'instanceReady', function(event){ 
	if ( editor.addMenuItems )
	{
		editor.removeMenuItem('paste');
	}
});	
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy