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

getSelectedHTML() not returning value for selected image


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


Millzy wrote Nov 6, 2015 at 8:19 AM

Could you demonstrate how to use the patch please?