﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11842	Invalid element given in a parameter for contextMenu.addListener listener.	Marek Lewandowski		"There seems to be an issue with context menu in readonly mode. It does not pass correct argument to funciton registered with {{{editor.contextMenu.addListener()}}} (see [http://docs.ckeditor.com/#!/api/CKEDITOR.menu-method-addListener reference]) on right click. Elements path seems to be invalid as well.

Issue might be OS dependent - tested with **FF28, Chrome, IE8 all @Win7**.

1. change your editor config (i.e. by changing config.js) to contain: {{{config.readOnly = true;}}}
2. open any sample with CKEditor (i.e. samples/replacebyclass.html)
3. execute following code in order to register a simple listener:
{{{
CKEDITOR.instances.editor1.contextMenu.addListener( function( el, sel ) {
	console.log( 'clicked tag ', el && el.getName() );
} );
}}}
4. right click directly on any link inside the editor

'''Expected result:'''[[BR]]
Editor should log something like:
{{{
clicked tag  a
}}}

'''Current result:'''[[BR]]
It uses totally different tag, and output is like:
{{{
clicked tag  h1
}}}

**FF28@Win7** gives even a body as a parameter.

additional info:[[BR]]
1. PK did already a quick tests and says that everything seems to be ok at Mac
1. for me it seems that selection does not reposition itself in readonly mode or sth"	Bug	confirmed	Normal		General				
