update to tinyMce 4.0.2

This commit is contained in:
vanilla thunder 2013-07-30 13:04:00 +02:00
parent 67b57129fa
commit 0eb1812bcd
313 changed files with 31276 additions and 1919 deletions

View File

@ -0,0 +1 @@
*.less

0
copy_this/modules/hdi/hdi-tinymce/hdi.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

0
copy_this/modules/hdi/hdi-tinymce/metadata.php Executable file → Normal file
View File

0
copy_this/modules/hdi/hdi-tinymce/tinymce.php Executable file → Normal file
View File

View File

View File

View File

@ -1000,7 +1000,12 @@ define("tinymce/Editor", [
// Focus the window iframe
if (!contentEditable) {
self.getBody().focus(); // WebKit needs this call to fire focusin event properly see #5948
// WebKit needs this call to fire focusin event properly see #5948
// But Opera pre Blink engine will produce an empty selection so skip Opera
if (!Env.opera) {
self.getBody().focus();
}
self.getWin().focus();
}

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -25,6 +25,7 @@ define("tinymce/dom/ControlSelection", [
var selectedElm, selectedElmGhost, resizeHandles, selectedHandle;
var startX, startY, selectedElmX, selectedElmY, startW, startH, ratio, resizeStarted;
var width, height, editableDoc = editor.getDoc(), rootDocument = document, isIE = Env.ie;
var lastMouseDownEvent;
// Details about each resize handle how to scale etc
resizeHandles = {
@ -339,8 +340,8 @@ define("tinymce/dom/ControlSelection", [
var target = e.srcElement, pos, name, corner, cornerX, cornerY, relativeX, relativeY;
pos = target.getBoundingClientRect();
relativeX = e.clientX - pos.left;
relativeY = e.clientY - pos.top;
relativeX = lastMouseDownEvent.clientX - pos.left;
relativeY = lastMouseDownEvent.clientY - pos.top;
// Figure out what corner we are draging on
for (name in resizeHandles) {
@ -358,7 +359,7 @@ define("tinymce/dom/ControlSelection", [
// Remove native selection and let the magic begin
resizeStarted = true;
editor.getDoc().selection.empty();
showResizeRect(target, name, e);
showResizeRect(target, name, lastMouseDownEvent);
}
function nativeControlSelect(e) {
@ -422,6 +423,10 @@ define("tinymce/dom/ControlSelection", [
});
attachEvent(editor.getBody(), 'controlselect', nativeControlSelect);
editor.on('mousedown', function(e) {
lastMouseDownEvent = e;
});
} else {
disableGeckoResize();
}

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -191,6 +191,7 @@ define("tinymce/ui/MenuButton", [
});
if (hasVisibleSiblingMenu) {
overCtrl.focus(); // Fix for: #5887
overCtrl.showMenu();
}
}

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -320,7 +320,7 @@ define("tinymce/util/Quirks", [
selection.getSel().setBaseAndExtent(e, 0, e, 1);
}
if (e.nodeName == 'A' && dom.hasClass(e, 'mceItemAnchor')) {
if (e.nodeName == 'A' && dom.hasClass(e, 'mce-item-anchor')) {
selection.select(e);
}

Some files were not shown because too many files have changed in this diff Show More