﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16813	editor.getSelectedHtml returns incorrect data	DmitryKrekota		"Because of clipboard plugin use editor.getSelectedHtml, this bug can reproduce with copy/paste. I also created plugin ""bugdemo"" to show how to repriduce the bug. You can download ckeditor with plugin ""bugdemo"" here: https://drive.google.com/file/d/0Bxtv10NlSOEbenRvWUtJeGhqV2c/view?usp=sharing
Also, see vidio record with bug reproducing: https://drive.google.com/file/d/0Bxtv10NlSOEbVU9POE9RenZkblE/view

----

== Steps to reproduce (""clipboard"" plugin) ==
1. download zip archive https://drive.google.com/file/d/0Bxtv10NlSOEbenRvWUtJeGhqV2c/view?usp=sharing , exstract it and open samples/index.html
2. Select text ""Lorem""
3. Open and close any dropdown menu
4. Copy selected text ""Lorem"" by clicking 'copy' button in toolbar.
5. Paste selected text by clicking 'paste' button in toolbar. (CTRL + V)

== Expected result (""clipboard"" plugin) ==
Inserted text is ""Lorem""
== Actual result (""clipboard"" plugin) ==
Inserted text is ""Lorem ipsum dolor sit amet. Hello CKE"" (all first text node)

----

== Steps to reproduce (custom ""bugdemo"" plugin) ==
1. download zip archive https://drive.google.com/file/d/0Bxtv10NlSOEbenRvWUtJeGhqV2c/view?usp=sharing , exstract it and open samples/index.html
2. Select text ""Lorem""
3. Open and close any dropdown menu
3. Click 'owl' button in toolbar.

== Expected result (custom ""bugdemo"" plugin) ==
See text ""~Lorem~""
== Actual result (custom ""bugdemo"" plugin) ==
See text ""~Lorem ipsum dolor sit amet. Hello CKE~""

----

== Other details (browser, OS, CKEditor version, installed plugins) ==

Reproduced only in CKEditor Inline Editing.

Environment: Windows 7, Chrome 56.
"	Bug	closed	Normal		Core : Selection	4.7.2	fixed	Firefox Webkit	
