Open imerkle opened 7 years ago
Im doing
wdtEmojiBundle.init('.txt1'); wdtEmojiBundle.init('.txt2'); `
wdtEmojiBundle.init('.txt1'); wdtEmojiBundle.init('.txt2');
When clicking the emoticon on .txt2 it shows the error Cannot read property 'getAttribute' of null
Is there any way to apply emoticon on multiple textarea which are added dynamically using ajax/jquery etc
var getSelection = function (el) { var result = {};
if (el.getAttribute('contenteditable')) { //####error in this line here return { el: el, ce: true } }
I have the same problem
Same here :(
Im doing
wdtEmojiBundle.init('.txt1'); wdtEmojiBundle.init('.txt2');
`When clicking the emoticon on .txt2 it shows the error Cannot read property 'getAttribute' of null
Is there any way to apply emoticon on multiple textarea which are added dynamically using ajax/jquery etc
var getSelection = function (el) { var result = {};