aboutsummaryrefslogtreecommitdiff
path: root/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js
diff options
context:
space:
mode:
Diffstat (limited to 'sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js')
-rw-r--r--sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js b/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js
index 37e2685..e5c3155 100644
--- a/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js
+++ b/sources/samples/toolbarconfigurator/lib/codemirror/codemirror.js
@@ -1181,7 +1181,7 @@
1181 // very slow. So make the area wide instead. 1181 // very slow. So make the area wide instead.
1182 if (webkit) te.style.width = "1000px"; 1182 if (webkit) te.style.width = "1000px";
1183 else te.setAttribute("wrap", "off"); 1183 else te.setAttribute("wrap", "off");
1184 // If border: 0; -- iOS fails to open keyboard (issue #1287) 1184 // If border: 0; -- iOS fails to open keyboard (issue http://dev.ckeditor.com/ticket/1287)
1185 if (ios) te.style.border = "1px solid black"; 1185 if (ios) te.style.border = "1px solid black";
1186 disableBrowserMagic(te); 1186 disableBrowserMagic(te);
1187 return div; 1187 return div;
@@ -1397,7 +1397,7 @@
1397 if (text == prevInput && !cm.somethingSelected()) return false; 1397 if (text == prevInput && !cm.somethingSelected()) return false;
1398 // Work around nonsensical selection resetting in IE9/10, and 1398 // Work around nonsensical selection resetting in IE9/10, and
1399 // inexplicable appearance of private area unicode characters on 1399 // inexplicable appearance of private area unicode characters on
1400 // some key combos in Mac (#2689). 1400 // some key combos in Mac (http://dev.ckeditor.com/ticket/2689).
1401 if (ie && ie_version >= 9 && this.hasSelection === text || 1401 if (ie && ie_version >= 9 && this.hasSelection === text ||
1402 mac && /[\uf700-\uf7ff]/.test(text)) { 1402 mac && /[\uf700-\uf7ff]/.test(text)) {
1403 cm.display.input.reset(); 1403 cm.display.input.reset();
@@ -1457,7 +1457,7 @@
1457 "px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: " + 1457 "px; left: " + (e.clientX - 5) + "px; z-index: 1000; background: " +
1458 (ie ? "rgba(255, 255, 255, .05)" : "transparent") + 1458 (ie ? "rgba(255, 255, 255, .05)" : "transparent") +
1459 "; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);"; 1459 "; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
1460 if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (#2712) 1460 if (webkit) var oldScrollY = window.scrollY; // Work around Chrome issue (http://dev.ckeditor.com/ticket/2712)
1461 display.input.focus(); 1461 display.input.focus();
1462 if (webkit) window.scrollTo(null, oldScrollY); 1462 if (webkit) window.scrollTo(null, oldScrollY);
1463 display.input.reset(); 1463 display.input.reset();
@@ -3581,7 +3581,7 @@
3581 e_preventDefault(e2); 3581 e_preventDefault(e2);
3582 if (!modifier && +new Date - 200 < startTime) 3582 if (!modifier && +new Date - 200 < startTime)
3583 extendSelection(cm.doc, start); 3583 extendSelection(cm.doc, start);
3584 // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081) 3584 // Work around unexplainable focus problem in IE9 (http://dev.ckeditor.com/ticket/2127) and Chrome (http://dev.ckeditor.com/ticket/3081)
3585 if (webkit || ie && ie_version == 9) 3585 if (webkit || ie && ie_version == 9)
3586 setTimeout(function() {document.body.focus(); display.input.focus();}, 20); 3586 setTimeout(function() {document.body.focus(); display.input.focus();}, 20);
3587 else 3587 else
@@ -3769,7 +3769,7 @@
3769 } 3769 }
3770 3770
3771 // Kludge to work around strange IE behavior where it'll sometimes 3771 // Kludge to work around strange IE behavior where it'll sometimes
3772 // re-fire a series of drag-related events right after the drop (#1551) 3772 // re-fire a series of drag-related events right after the drop (http://dev.ckeditor.com/ticket/1551)
3773 var lastDrop = 0; 3773 var lastDrop = 0;
3774 3774
3775 function onDrop(e) { 3775 function onDrop(e) {
@@ -4139,7 +4139,7 @@
4139 // select-all detection hack) 4139 // select-all detection hack)
4140 if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) { 4140 if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {
4141 cm.display.input.reset(); 4141 cm.display.input.reset();
4142 if (webkit) setTimeout(function() { cm.display.input.reset(true); }, 20); // Issue #1730 4142 if (webkit) setTimeout(function() { cm.display.input.reset(true); }, 20); // Issue http://dev.ckeditor.com/ticket/1730
4143 } 4143 }
4144 cm.display.input.receivedFocus(); 4144 cm.display.input.receivedFocus();
4145 } 4145 }
@@ -6832,7 +6832,7 @@
6832 } 6832 }
6833 } 6833 }
6834 6834
6835 // See issue #2901 6835 // See issue http://dev.ckeditor.com/ticket/2901
6836 if (webkit && /\bcm-tab\b/.test(builder.content.lastChild.className)) 6836 if (webkit && /\bcm-tab\b/.test(builder.content.lastChild.className))
6837 builder.content.className = "cm-tab-wrap-hack"; 6837 builder.content.className = "cm-tab-wrap-hack";
6838 6838
@@ -8367,7 +8367,7 @@
8367 if (badBidiRects != null) return badBidiRects; 8367 if (badBidiRects != null) return badBidiRects;
8368 var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA")); 8368 var txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA"));
8369 var r0 = range(txt, 0, 1).getBoundingClientRect(); 8369 var r0 = range(txt, 0, 1).getBoundingClientRect();
8370 if (!r0 || r0.left == r0.right) return false; // Safari returns null in some cases (#2780) 8370 if (!r0 || r0.left == r0.right) return false; // Safari returns null in some cases (http://dev.ckeditor.com/ticket/2780)
8371 var r1 = range(txt, 1, 2).getBoundingClientRect(); 8371 var r1 = range(txt, 1, 2).getBoundingClientRect();
8372 return badBidiRects = (r1.right - r0.right < 3); 8372 return badBidiRects = (r1.right - r0.right < 3);
8373 } 8373 }