This project has moved. For the latest updates, please go here.
1
Vote

getSelectedHTML() not returning value for selected image

description

In Internet Explorer, when an image is selected in the editor the value returned from getSelectedHTML() gives 'undefined' rather than the '<img src=...' HTML expected. This is because just a selected image is seen as a Control, rather than a range. Changing the getSelectedHTML() method to return the outerHTML if the selection is a control fixes this error. A patch file is attached.

file attachments

comments

Millzy wrote Nov 6, 2015 at 7:19 AM

Could you demonstrate how to use the patch please?