leaps icon indicating copy to clipboard operation
leaps copied to clipboard

Content editable tags

Open yguarata opened this issue 10 years ago • 3 comments

Hi there,

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

Thanks.

yguarata avatar Dec 11 '15 12:12 yguarata

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.

Jeffail avatar Dec 11 '15 19:12 Jeffail

Hi @Jeffail,

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

yguarata avatar Dec 12 '15 10:12 yguarata

@yguarata

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

faddat avatar Feb 09 '16 04:02 faddat