Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html content editable no newline

document.getElementById('myEditableContent').addEventListener('keypress', (evt) => {
    if (evt.which === 13) {
        evt.preventDefault();
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #content #editable #newline
ADD COMMENT
Topic
Name
9+6 =