editor.getSelectionElement()Returns the selected element.Syntaxeditor.getSelectionElement()Return valueType: HTMLElement The selected element.