This repository was archived by the owner on Apr 10, 2023. It is now read-only.

Description
After updating to Chrome 58 (and above) selecting a image gives us an error:
Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1. at Editor.eval (eval at <anonymous> (http://www.ufal.edu.br/portal_javascripts/Sunburst%20Theme/resourceplone.app.jquery-cachekey-f086f5c4645dd39c3fbe3cc5c64f88b7.js:12:11369), <anonymous>:1:15386) at Dispatcher.dispatch (eval at <anonymous> (http://www.ufal.edu.br/portal_javascripts/Sunburst%20Theme/resourceplone.app.jquery-cachekey-f086f5c4645dd39c3fbe3cc5c64f88b7.js:12:11369), <anonymous>:1:6059) at DOMUtils.c (eval at <anonymous> (http://www.ufal.edu.br/portal_javascripts/Sunburst%20Theme/resourceplone.app.jquery-cachekey-f086f5c4645dd39c3fbe3cc5c64f88b7.js:12:11369), <anonymous>:1:185038) at j (eval at <anonymous> (http://www.ufal.edu.br/portal_javascripts/Sunburst%20Theme/resourceplone.app.jquery-cachekey-f086f5c4645dd39c3fbe3cc5c64f88b7.js:12:11369), <anonymous>:1:58686) at HTMLDocument.y (eval at <anonymous> (http://www.ufal.edu.br/portal_javascripts/Sunburst%20Theme/resourceplone.app.jquery-cachekey-f086f5c4645dd39c3fbe3cc5c64f88b7.js:12:11369), <anonymous>:1:58844)
This doesn't happen in firefox or safari.
According to this it's is related to the recent updates in chrome's Selection API.
TinyMCE already fixed that in version 4.5.4 tinymce/tinymce@19f3098#diff-e5490c44bb1973bd0210940a7c159866
Since Products.TinyMCE use version 3.5.11 how do we fix this?