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

Bind to DOM elements other than textarea and input. #208

Closed
andre-d opened this issue Oct 8, 2013 · 3 comments
Closed

Bind to DOM elements other than textarea and input. #208

andre-d opened this issue Oct 8, 2013 · 3 comments

Comments

@andre-d
Copy link

andre-d commented Oct 8, 2013

I would like to add an alternate mode which fires off keyboard events rather than appending text (for use with DOM elements other than input and textarea). Should help with people who would like to use a virtual keyboard with webgl and canvas games and the sort. Pull requesting when I get the free time to code it up.

@raduanastase
Copy link

Hi, have you managed to bind it to other elements besides textarea or input?

@Mottie
Copy link
Owner

Mottie commented Mar 11, 2014

You can bind and trigger a keyboard to open on content editable elements now, but there is a javascript error when trying to get the caret position within the contenteditable element. This is a problem with the included caret positioning plugin.

I have been considering changing the caret positioning plugin over to Rangy, but it would require some modifications to work with this plugin. I have also thought about using this input mask plugin to do all the caret positioning work, and provide a method to add an input mask. Either way, it's not something that will get done soon. Sorry :(

@Mottie
Copy link
Owner

Mottie commented Sep 6, 2017

Contenteditable support added in v1.27.0-beta.

@Mottie Mottie closed this as completed Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants