Simple Html, Javascript text editor.
let range = window.getSelection().getRangeAt( 0 ); let selectionWithHTML = range.startContainer.parentNode; console.log( sele