Untrusted Image Content
Hello,
The insertInlineGraphic method of the IEditManager interface has a requirement to articulate the width and height of the DisplayObject and I find this limiting. Let me explain why.
In a text editor, it is easy enough to let a user specify the URL of an image they want to load into the text flow along with the width and height of this image. But the ability to copy and paste an image or drag and drop it from another component is much more elegant.
In a particular implementation I've set up, I start with a URL to an image and load it to an Image control, then once the content has loaded to the Image, I cast its content property to a Bitmap, get the width and height of the Bitmap, then pass the Bitmap along with the dynamically determined height and width to the insertInlineGraphic method.
This works fine, however, if there is no crossdomain.xml on the server of the image provider then this obviously won't work as you won't be able to access the Image's content property to dynamically determine its width and height.
Again, I find this somewhat limiting and feel it is crucial to be able to more easily insert media into text flow when the dimensions of said media are not known ahead of time.
Comments or clarifications if I've misunderstood anything are welcome.
