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

Content editable tags #15

Open
yguarata opened this issue Dec 11, 2015 · 3 comments
Open

Content editable tags #15

yguarata opened this issue Dec 11, 2015 · 3 comments

Comments

@yguarata
Copy link

Hi there,

is it possible to make Leaps work with content editable tags, not only textarea?

Thanks.

@Jeffail
Copy link
Owner

Jeffail commented Dec 11, 2015

Hey @yguarata,

I haven't had a chance to read the specs for elements made editable, but I would imagine it's just a case of wrapping the API to catch content changed events etc and mapping them to leaps calls.

I'll investigate when I have time, but you could take a look at implementing it yourself by looking at the code for the textarea binding at https://github.com/Jeffail/leaps/blob/master/client/leap-bind-textarea.js. I would imagine the implementation would look similar as I'm hoping that the JavaScript API would be similar across the two elements.

@yguarata
Copy link
Author

Hi @Jeffail,

thank you for the fast reply.
I will give it a try and let you know if I succeeded.

@faddat
Copy link

faddat commented Feb 9, 2016

@yguarata

That's a really neat idea. Have you had any luck?

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