dist/dom-selection.es.js
function getCaretWord(sel) {
	sel = sel || getSelection();
	var rng = getRange(sel);
	expandToWord(sel);
	var str = sel.toString(); // range?
	// Restore selection
	setRange(rng);
	return str;
}
function getCaretWord(sel) {
	sel = sel || getSelection();
	var rng = getRange(sel);
	expandToWord(sel);
	var str = sel.toString(); // range?
	// Restore selection
	setRange(rng);
	return str;
}
function getCaretWord ( sel ) { sel = sel || getSelection ( ) ; var rng = getRange ( sel ) ; expandToWord ( sel ) ; var str = sel . toString ( ) ; // range? // Restore selection setRange ( rng ) ; return str ; }
Get the full word that the Caret is within.
@see http://stackoverflow.com/questions/11247737/how-can-i-get-the-word-that-the-caret-is-upon-inside-a-contenteditable-div
@param  {Selection} sel
@return {String}
Get the full word that the Caret is within .