diff --git a/doc/easysync/easysync.odt b/doc/easysync/easysync.odt deleted file mode 100644 index 37a99f7d..00000000 Binary files a/doc/easysync/easysync.odt and /dev/null differ diff --git a/static/js/ace.js.old b/static/js/ace.js.old deleted file mode 100644 index 42c3cf28..00000000 --- a/static/js/ace.js.old +++ /dev/null @@ -1,30 +0,0 @@ -Ace2Editor.registry={nextId:1};function Ace2Editor(){var K="Ace2Editor";var F=Ace2Editor;var B={};var A={editor:B,id:(F.registry.nextId++)}; -var D=false;var E=[];function C(R,Q){return function(){var T=this;var S=arguments;function U(){R.apply(T,S); -}if(Q){Q.apply(T,S);}if(D){U();}else{E.push(U);}};}function I(){for(var Q=0;Q';};var J=function(Q){return'\x3cscript type="text/javascript" src="'+Q+'">\x3c/script>'; -};var M=J;var N=H;var L=function(Q){return'\''"; -};var G=function(Q){return'\'\\x3cscript type="text/javascript" src="'+Q+"\">\\x3c/script>'";};var P=G; -var O=L;B.destroy=C(function(){A.ace_dispose();A.frame.parentNode.removeChild(A.frame);delete F.registry[A.id]; -A=null;});B.init=function(Q,S,R){B.importText(S);A.onEditorReady=function(){D=true;I();R();};(function(){var W=''; -var T=["'"+W+"'"];plugins.callHook("aceInitInnerdocbodyHead",{iframeHTML:T});T.push(("('\\n\'');T.push('\' \''); -var X='editorId = "'+A.id+'"; editorInfo = parent.'+K+'.registry[editorId]; window.onload = function() { window.onload = null; setTimeout(function() { var iframe = document.createElement("IFRAME"); iframe.scrolling = "no"; var outerdocbody = document.getElementById("outerdocbody"); iframe.frameBorder = 0; iframe.allowTransparency = true; outerdocbody.insertBefore(iframe, outerdocbody.firstChild); iframe.ace_outerWin = window; readyFunc = function() { editorInfo.onEditorReady(); readyFunc = null; editorInfo = null; }; var doc = iframe.contentWindow.document; doc.open(); doc.write('+T.join("+")+"); doc.close(); }, 0); }"; -var Y=[W,"",(''),'',"\x3cscript>",X,"\x3c/script>",'
x
']; -if(!Array.prototype.map){Array.prototype.map=function(b){if(typeof b!="function"){throw new TypeError(); -}var a=this.length;var c=new Array(a);var d=arguments[1];for(var Z=0;Z, time: +new Date()} - return info.ace_getUnhandledErrors(); - }; - - editor.callWithAce = pendingInit(function(fn, callStack, normalize) { - return info.ace_callWithAce(fn, callStack, normalize); - }); - - editor.execCommand = pendingInit(function(cmd, arg1) { - info.ace_execCommand(cmd, arg1); - }); - editor.replaceRange = pendingInit(function(start, end, text) { - info.ace_replaceRange(start, end, text); - }); - - - // calls to these functions ($$INCLUDE_...) are replaced when this file is processed - // and compressed, putting the compressed code from the named file directly into the - // source here. - - /*var $$INCLUDE_CSS = function(fileName) { - return ''; - }; - var $$INCLUDE_JS = function(fileName) { - return '\x3cscript type="text/javascript" src="'+fileName+'">\x3c/script>'; - }; - var $$INCLUDE_JS_DEV = $$INCLUDE_JS; - var $$INCLUDE_CSS_DEV = $$INCLUDE_CSS; - - var $$INCLUDE_CSS_Q = function(fileName) { - return '\'\''; - }; - var $$INCLUDE_JS_Q = function(fileName) { - return '\'\\x3cscript type="text/javascript" src="'+fileName+'">\\x3c/script>\''; - }; - var $$INCLUDE_JS_Q_DEV = $$INCLUDE_JS_Q; - var $$INCLUDE_CSS_Q_DEV = $$INCLUDE_CSS_Q;*/ - - editor.destroy = pendingInit(function() { - info.ace_dispose(); - info.frame.parentNode.removeChild(info.frame); - delete ace2.registry[info.id]; - info = null; // prevent IE 6 closure memory leaks - }); - - editor.init = function(containerId, initialCode, doneFunc) { - - editor.importText(initialCode); - - info.onEditorReady = function() { - loaded = true; - doActionsPendingInit(); - doneFunc(); - }; - - (function() { - var doctype = ''; - - var iframeHTML = ["'"+doctype+"'"]; - - plugins.callHook( - "aceInitInnerdocbodyHead", {iframeHTML:iframeHTML}); - - // these lines must conform to a specific format because they are passed by the build script: - //iframeHTML.push($$INCLUDE_CSS_Q("editor.css syntax.css inner.css")); - - iframeHTML.push('\'\''); - iframeHTML.push('\'\''); - iframeHTML.push('\'\''); - - //iframeHTML.push(INCLUDE_JS_Q_DEV("ace2_common_dev.js")); - //iframeHTML.push(INCLUDE_JS_Q_DEV("profiler.js")); - // iframeHTML.push($$INCLUDE_JS_Q("ace2_common.js skiplist.js virtual_lines.js easysync2.js cssmanager.js colorutils.js undomodule.js contentcollector.js changesettracker.js linestylefilter.js domline.js")); - //iframeHTML.push($$INCLUDE_JS_Q("ace2_inner.js")); - - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/ace2_common.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/skiplist.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/virtual_lines.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/easysync2.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/cssmanager.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/colorutils.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/undomodule.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/contentcollector.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/changesettracker.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/linestylefilter.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/domline.js">\\x3c/script>\''); - iframeHTML.push('\'\\x3cscript type="text/javascript" src="/static/js/ace2_inner.js">\\x3c/script>\''); - - iframeHTML.push('\'\\n\\n\''); - iframeHTML.push('\' \''); - - var outerScript = 'editorId = "'+info.id+'"; editorInfo = parent.'+ - thisFunctionsName+'.registry[editorId]; '+ - 'window.onload = function() '+ - '{ window.onload = null; setTimeout'+ - '(function() '+ - '{ var iframe = document.createElement("IFRAME"); '+ - 'iframe.scrolling = "no"; var outerdocbody = document.getElementById("outerdocbody"); '+ - 'iframe.frameBorder = 0; iframe.allowTransparency = true; '+ // for IE - 'outerdocbody.insertBefore(iframe, outerdocbody.firstChild); '+ - 'iframe.ace_outerWin = window; '+ - 'readyFunc = function() { editorInfo.onEditorReady(); readyFunc = null; editorInfo = null; }; '+ - 'var doc = iframe.contentWindow.document; doc.open(); doc.write('+ - iframeHTML.join('+')+'); doc.close(); '+ - '}, 0); }'; - - var outerHTML = [doctype, '', - '', - // bizarrely, in FF2, a file with no "external" dependencies won't finish loading properly - // (throbs busy while typing) - '', - '\x3cscript>', outerScript, '\x3c/script>', - '
x
']; - - - if (!Array.prototype.map) Array.prototype.map = function(fun) { //needed for IE - if (typeof fun != "function") throw new TypeError(); - var len = this.length; - var res = new Array(len); - var thisp = arguments[1]; - for (var i = 0; i < len; i++) { - if (i in this) res[i] = fun.call(thisp, this[i], i, this); - } - return res; - }; - - var outerFrame = document.createElement("IFRAME"); - outerFrame.frameBorder = 0; // for IE - info.frame = outerFrame; - document.getElementById(containerId).appendChild(outerFrame); - - var editorDocument = outerFrame.contentWindow.document; - - editorDocument.open(); - editorDocument.write(outerHTML.join('')); - editorDocument.close(); - })(); - }; - - return editor; -}