});
// WP default shortcut
- editor.addShortcut( 'Alt+Shift+A', '', 'WP_Link' );
+ editor.addShortcut( 'access+a', '', 'WP_Link' );
// The "de-facto standard" shortcut, see #27305
- editor.addShortcut( 'Meta+K', '', 'WP_Link' );
+ editor.addShortcut( 'meta+k', '', 'WP_Link' );
editor.addButton( 'link', {
icon: 'link',
} );
editor.on( 'preinit', function() {
- toolbar = editor.wp._createToolbar( [
- 'wp_link_preview',
- 'wp_link_edit',
- 'wp_link_remove'
- ], true );
+ if ( editor.wp && editor.wp._createToolbar ) {
+ toolbar = editor.wp._createToolbar( [
+ 'wp_link_preview',
+ 'wp_link_edit',
+ 'wp_link_remove'
+ ], true );
+ }
} );
} );
} )( window.tinymce );