html content editable no newline

Solutions on MaxInterview for html content editable no newline by the best coders in the world

showing results for - "html content editable no newline"
Jona
19 Jan 2017
1document.getElementById('myEditableContent').addEventListener('keypress', (evt) => {
2    if (evt.which === 13) {
3        evt.preventDefault();
4    }
5});