o upgrade tinymce to 2.0.6.1. get it out of the web-client source tree and do the extract into the assembling war file.

o fix submit error in forms.  i rejiggered ids and didn't update the code to send the right ones for submit.
o improvements to how ajax requests are made.  centralizing that code, serializing requests, and adding a gmail style "Loading..." thing (mostly for diagnostic purposes).
o tinymce fixes - still a lot of work to be done.  reduced (by way too much) the number of buttons in the toolbar - i'll iron that out today.  it's still sizing itself irresponsibly - and i really want a way to get blur events.  may need to patch it.




git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3868 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-09-20 19:25:57 +00:00
parent ae0a118985
commit ab97ccef76
116 changed files with 371 additions and 9784 deletions

View File

@@ -1,86 +0,0 @@
// Get tinyMCE window
var win = window.opener ? window.opener : window.dialogArguments;
var tinyMCE = null;
var tinyMCELang = null;
// Use top window if not defined
if (!win)
win = top;
var tinyMCE = win.tinyMCE;
var tinyMCELang = win.tinyMCELang;
if (!tinyMCE)
alert("tinyMCE object reference not found from popup.");
// Setup window openerer
window.opener = win;
// Setup title
var re = new RegExp('{|\\\$|}', 'g');
var title = document.title.replace(re, "");
if (typeof tinyMCELang[title] != "undefined") {
var divElm = document.createElement("div");
divElm.innerHTML = tinyMCELang[title];
document.title = divElm.innerHTML;
}
// Setup dir
if (tinyMCELang['lang_dir'])
document.dir = tinyMCELang['lang_dir'];
function TinyMCEPlugin_onLoad() {
if (tinyMCE.getWindowArg('mce_replacevariables', true))
document.body.innerHTML = tinyMCE.applyTemplate(document.body.innerHTML, tinyMCE.windowArgs);
// Auto resize window
if (tinyMCE.getWindowArg('mce_windowresize', true)) {
var width = tinyMCE.isMSIE ? document.body.offsetWidth : window.innerWidth;
var height = tinyMCE.isMSIE ? document.body.offsetHeight : window.innerHeight;
var dx = document.body.scrollWidth - width;
var dy = document.body.scrollHeight - height;
if (tinyMCE.isMSIE) {
window.dialogWidth = (parseInt(window.dialogWidth) + dx) + "px";
window.dialogHeight = (parseInt(window.dialogHeight) + dy + 3) + "px";
} else
window.resizeBy(dx + 15, dy + 15);
}
}
function TinyMCEPopup_autoResize() {
var isMSIE = (navigator.appName == "Microsoft Internet Explorer");
var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
if (isOpera)
return;
if (isMSIE) {
try { window.resizeTo(10, 10); } catch (e) {}
var elm = document.body;
var width = elm.offsetWidth;
var height = elm.offsetHeight;
var dx = (elm.scrollWidth - width) + 4;
var dy = elm.scrollHeight - height;
try { window.resizeBy(dx, dy); } catch (e) {}
} else {
window.scrollBy(1000, 1000);
if (window.scrollX > 0 || window.scrollY > 0) {
window.resizeBy(window.innerWidth * 2, window.innerHeight * 2);
window.sizeToContent();
window.scrollTo(0, 0);
var x = parseInt(screen.width / 2.0) - (window.outerWidth / 2.0);
var y = parseInt(screen.height / 2.0) - (window.outerHeight / 2.0);
window.moveTo(x, y);
}
}
}
// Add onload trigger
tinyMCE.addEvent(window, "load", TinyMCEPlugin_onLoad);
// Output Popup CSS class
document.write('<link href="' + tinyMCE.getParam("popups_css") + '" rel="stylesheet" type="text/css">');