Content editable tags
Hi there,
is it possible to make Leaps work with content editable tags, not only textarea?
Thanks.
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.
Hi @Jeffail,
thank you for the fast reply. I will give it a try and let you know if I succeeded.
@yguarata
That's a really neat idea. Have you had any luck?