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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -