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

Use div class instead of textarea #44

Closed
zerosonesfun opened this issue Jul 10, 2020 · 1 comment
Closed

Use div class instead of textarea #44

zerosonesfun opened this issue Jul 10, 2020 · 1 comment

Comments

@zerosonesfun
Copy link

zerosonesfun commented Jul 10, 2020

I'm using a wysiwyg editor and it doesn't use textarea. Your index.js code works great if I target a textarea, but as soon as I change the querySelector to a class, like .myeditor, then E is no longer a function according to my console error.

The index.js file I'm trying to use is from the demo: https://words.github.io/syllable/index.js

I know this isn't an "issue" and github isn't necessarily meant for support like this but I thought I'd give this a shot.

@wooorm
Copy link
Member

wooorm commented Jul 10, 2020

That file is specifically made for the website, for a text area.
See the source here: https://github.com/words/syllable/tree/website.
Feel free to modify it for your needs!

@wooorm wooorm closed this as completed Jul 10, 2020
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