The visual editor (TinyMCE) has its own API and since its a JavaScript Based editor you can get the selection using JavaScript very easily
tinyMCE.activeEditor.selection.getContent();
The visual editor (TinyMCE) has its own API and since its a JavaScript Based editor you can get the selection using JavaScript very easily
tinyMCE.activeEditor.selection.getContent();