You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the problem here is that DataTransfer.getText() is not handling IE's 'text' type correctly. It's just checking on the length of the this.types array, whilst in IE11 the types array does contain the 'text' data using "Text".
So it should rather do this:
In https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/datatransfer/DataTransfer.js#L97,
getHTML
is returning the 'Text' data from the clipboard (dataTransfer), but this seems incorrect to me. Presumably this is done for IE, which does not support thetext/html
content type, but it is rather misleading to havegetHTML
return plain text rather than HTML.In Draft.js, this leads to subtle bugs such as facebookarchive/draft-js#656.
Do you agree this is something that should be fixed?
The text was updated successfully, but these errors were encountered: