javascript - contenteditable cancel push elements -
hey friend, need help...
made page div "contenteditable" , want cancel push divs / br / p , stay empty elements after it's function because it's function create massage in "what'sapp web" ...
the first lines (1-6) doesnt work click enter if clicking "send" button work...
but please first open link in div contenteditable click @ least twice timesenter , understand problem...
you can see link: jsfiddle.net/sarelyuval/nl1rbel9
thank you!
var t = document.createtextnode(input.textcontent); // line no 56
instead of input.innerhtml need content input.textcontent
Comments
Post a Comment