st-h / ember-content-editable

A contenteditable component for ember-cli that just works™
MIT License
66 stars 31 forks source link

add ie11 paste support #50

Closed webark closed 6 years ago

webark commented 6 years ago

ie11 does not support the clipboardData on the paste event, but has a seprate window wide clipboard data that it uses.

Also, ie11 does not support the insertText option of document.execCommand so instead we fall back on a selection, textnode, range hack to insert that text into the element.

webark commented 6 years ago

@st-h let me know if there is anything else that you would like.

webark commented 6 years ago

I can add a method to get that codeclimate complexity down.

webark commented 6 years ago

@st-h fixed those codeclimate complexity issues.

st-h commented 6 years ago

@webark awesome! thanks for finding and fixing.

st-h commented 6 years ago

released as 1.0.1