Opened 11 years ago

Last modified 10 years ago

#11037 assigned Bug

No link&unlink option in context menu opened on widget

Reported by: Piotrek Koszuliński Owned by: Marek Lewandowski
Priority: Normal Milestone:
Component: General Version: 4.3
Keywords: Cc:

Description

  1. Open MathJax sample.
  2. Select some text containing widget (or just widget).
  3. Create link.
  4. Right click widget.
  5. There are no link and unlink options in context menu.

Change History (5)

comment:1 Changed 10 years ago by Marek Lewandowski

Status: newconfirmed

comment:2 Changed 10 years ago by Marek Lewandowski

Owner: set to Marek Lewandowski
Status: confirmedassigned

comment:3 Changed 10 years ago by Marek Lewandowski

The solution for this issue was initially commited by Olek in git:78c4fbdf56b - in case of widgets like mathjax and placeholder plugins it comes down to:

widget.on( 'contextMenu', function( evt ) {
	// Integrate context menu items for link.
	if ( widget.wrapper.getAscendant( 'a' ) )
		evt.data.link = evt.data.unlink = CKEDITOR.TRISTATE_OFF;
} );

comment:4 Changed 10 years ago by Piotrek Koszuliński

This is not the right solution. If inline widget is inside a link the link option should be automatically enabled in context menu. This has to be solved on link plugin side.

comment:5 Changed 10 years ago by Piotrek Koszuliński

PS. image2 is a totally different case, because it handles links in a custom way.

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