Chrome 58 cannot select image
This commit is contained in:
1 parent
f9b4ead6be
commit
6dc334ca51
11 files changed
+250
-30
No files matched your search
@@ -776,7 +776,8 @@ define("tinymce/util/Quirks", [
|
||||
// Needs to be the setBaseAndExtend or it will fail to select floated images
|
||||
if (/^(IMG|HR)$/.test(target.nodeName)) {
|
||||
e.preventDefault();
|
||||
selection.getSel().setBaseAndExtent(target, 0, target, 1);
|
||||
// selection.getSel().setBaseAndExtent(target, 0, target, 1);
|
||||
selection.select(target);
|
||||
editor.nodeChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user