Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Dynamic Textarea : Cannot read property 'getAttribute' of null #9

Open
imerkle opened this issue Oct 22, 2016 · 2 comments
Open
Assignees

Comments

@imerkle
Copy link

imerkle commented Oct 22, 2016

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 = {};

if (el.getAttribute('contenteditable')) { //####error in this line here
  return {
    el: el,
    ce: true
  }
}
@needim needim self-assigned this Dec 9, 2016
@aleksey6689
Copy link

I have the same problem

@Jake0303
Copy link

Same here :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants