Commit c01fdc90 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3262074: Remove the Double Click event from the Anchor Link plugin, not...

Issue #3262074: Remove the Double Click event from the Anchor Link plugin, not to conflict the double click event with Drupal Core Link or Linkit
parent 5d4561a7
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -96,6 +96,26 @@
			CKEDITOR.dialog.add( 'link', this.path + 'dialogs/link.js' );
			CKEDITOR.dialog.add( 'anchor', this.path + 'dialogs/anchor.js' );

			// If the "menu" plugin is loaded, register the menu items.
			if ( editor.addMenuItems ) {
				editor.addMenuItems( {
					anchor: {
						label: editor.lang.link.anchor.menu,
						command: 'anchor',
						group: 'anchor',
						order: 1
					},

					removeAnchor: {
						label: editor.lang.link.anchor.remove,
						command: 'removeAnchor',
						group: 'anchor',
						order: 5
					},

				} );
			}

			// If the "contextmenu" plugin is loaded, register the listeners.
			if ( editor.contextMenu ) {
				editor.contextMenu.addListener( function( element ) {