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

Init plugin before document.ready? #19

Open
eight04 opened this issue Dec 19, 2016 · 3 comments
Open

Init plugin before document.ready? #19

eight04 opened this issue Dec 19, 2016 · 3 comments

Comments

@eight04
Copy link

eight04 commented Dec 19, 2016

As title, I tried to use this plugin before document.ready and got

TypeError: $(...).getSelection is not a function
@LoganDark
Copy link

But before document.ready your textarea likely won't exist.

@eight04
Copy link
Author

eight04 commented Jul 23, 2018

If you put script files after the <textarea> element, it would be available when executing the script.

@LoganDark
Copy link

Personally, I believe in including all scripts in <head> and executing once the page has finished loading. However, touché.

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

2 participants