Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

content editable

var content = document.querySelector('[contenteditable]');

// 1. Listen for changes of the contenteditable element
content.addEventListener('input', function(event) {
  // 2. Retrive the text from inside the element
  console.log(content.innerHTML);
});
Source by www.samanthaming.com #
 
PREVIOUS NEXT
Tagged: #content #editable
ADD COMMENT
Topic
Name
9+9 =