This PR fixes a bug that occurs when users have allowedTypes: '*' and they paste a string. Before this PR, it would attempt (and fail) to upload a file, and insert the [Uploading file...]() message in the editor.
This PR fixes that by returning false from inlineAttachment.prototype.isFileAllowed if the pasted item is a string.
This PR fixes a bug that occurs when users have
allowedTypes: '*'
and they paste a string. Before this PR, it would attempt (and fail) to upload a file, and insert the[Uploading file...]()
message in the editor.This PR fixes that by returning
false
frominlineAttachment.prototype.isFileAllowed
if the pasted item is a string.