deleteAfter() {
let contents = this.element.parent().contents();
// Find the text after caret.
let textAfter = contents[contents.index(this.element) + 1];
textAfter.textContent = textAfter.textContent.substr(1);
}
deleteAfter() {
let contents = this.element.parent().contents();
// Find the text after caret.
let textAfter = contents[contents.index(this.element) + 1];
textAfter.textContent = textAfter.textContent.substr(1);
}