bootstrap-suggest icon indicating copy to clipboard operation
bootstrap-suggest copied to clipboard

No support for contenteditable div

Open waqasy opened this issue 9 years ago • 6 comments
trafficstars

I was trying to see if it works with contenteditable div. But it doesn't :(

waqasy avatar Dec 13 '15 18:12 waqasy

nope sorry. I think we can tweak the plugin to support this.. this is just a matter of applying events and caret position calculation same with input/textarea elements but I couldn't do it anytime soon.

If you'd like to take a shot for it, you can freely submit a PR and we'll see if it works :)

lodev09 avatar Dec 14 '15 04:12 lodev09

Thanks. Surely. I'll look into it.

waqasy avatar Dec 14 '15 07:12 waqasy

I think if this is completed this will make this a lot more useful. I started working to add support for this. In addition we need to do the following:

el.val() -> el.text() element.value -> element.textContent

trying to figure out how to get the position calculations working on the div contenteditable

aaronorosen avatar Sep 05 '16 21:09 aaronorosen

Check this out

lodev09 avatar Sep 06 '16 04:09 lodev09

no solution

golches avatar Mar 25 '17 15:03 golches

this is too much for this simple plugin, closing this

lodev09 avatar Jan 06 '19 14:01 lodev09