﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12518	[IE8 bug] getSelectedText returning empty string when selecting text within an ordered list in a table	ckeditorTest		"I'm trying to put an anchor tag on a list item embedded in a table.
As noted in the summary this bug is happening only in IE8 for me. Works in FF & Chrome. I'm using a custom plugin to get the selected text and set the anchor.

HTML:
{{{
<table>
	<tbody>
		<tr>
			<td>
			<ul>
				<li>test1 test</li>
				<li>test2 test</li>
			</ul>
			</td>
		</tr>
	</tbody>
</table>
}}}

JS:
{{{
		var CKEDITOR = parent.window.opener.CKEDITOR;
		var editor1 = CKEDITOR.instances.editor1;
		var selection = editor1.getSelection();
		var selectedText = selection.getSelectedText();
 
 
		if (selection.getType() == CKEDITOR.SELECTION_ELEMENT) {
		  var selectedContent = selection.getSelectedElement().$.outerHTML;
		} else if (selection.getType() == CKEDITOR.SELECTION_TEXT) {
		  if (CKEDITOR.env.ie) {
		    selection.unlock(true);
		    selectedContent = selection.getNative().createRange().htmlText;
		  } else {
		    selectedContent = selection.getNative();
		  }
		}
}}}
"	Bug	closed	Normal		General	4.4.1	invalid		
