I'd like to automate conversion of pasted image URLs to an
<img>. I can do this synchronously via the existing
inputRule mechanism for URLs that end in "jpg", "png", "gif", etc. Many image URLs today though are dynamic and don't have this type of regex-able solution. In order to detect if it is an image AND in order to get the image
height I need to create an image object and wait for the
onload. I think this means that I need my inputRule to be asynchronous.
How can I achieve this? Any thoughts/help would be greatly appreciated!