As for not updating when clicking on images, I took a look at that code in detail and that is not a bug. Preview to CodeView has always worked that way even under webkit. The javascript uses the document selection anchor to determine its position (that is how it always works). Clicking on an image will not change cursor/selection position. So the position returned is always unchanged until you click someplace in the text. Clicking on the image caption, clicking immediately before the image, clicking immediately after the image work because the document selection is then changed.
There really is no other position to reference as images are not part of the text to select.
|