Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8148

Cannot select an image in richtext of Chrome 58 anymore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.5.6, 3.7.4, 3.8.2, 4.0RC4
    • None
    • None
    • None

      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();
      				}
      

            Unassigned Unassigned
            raphael Raphaƫl Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: