Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1. at Editor.<anonymous> (http://test4.gigi.anyware.corp/cms/plugins/tiny_mce/resources/js/tinymce.js:31444:25) at Dispatcher.fire (http://test4.gigi.anyware.corp/cms/plugins/tiny_mce/resources/js/tinymce.js:23703:24) at Editor.fire (http://test4.gigi.anyware.corp/cms/plugins/tiny_mce/resources/js/tinymce.js:24022:36) at DOMUtils.delegate (http://test4.gigi.anyware.corp/cms/plugins/tiny_mce/resources/js/tinymce.js:32320:13) at executeHandlers (http://test4.gigi.anyware.corp/cms/plugins/tiny_mce/resources/js/tinymce.js:925:36) at HTMLHtmlElement.defaultNativeHandler (http://test4.gigi.anyware.corp/cms/plugins/tiny_mce/resources/js/tinymce.js:952:5)
// Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250 // WebKit can't even do simple things like selecting an image // Needs to be the setBaseAndExtend or it will fail to select floated images if (/^(IMG|HR)$/.test(target.nodeName) && dom.getContentEditableParent(target) !== "false") { e.preventDefault(); selection.getSel().setBaseAndExtent(target, 0, target, 1); editor.nodeChanged(); }