|
|
@ -27,7 +27,7 @@ define([
|
|
|
|
'/bower_components/hyperjson/hyperjson.js',
|
|
|
|
'/bower_components/hyperjson/hyperjson.js',
|
|
|
|
'/common/sframe-app-framework.js',
|
|
|
|
'/common/sframe-app-framework.js',
|
|
|
|
'/common/cursor.js',
|
|
|
|
'/common/cursor.js',
|
|
|
|
'/common/TypingTests.js',
|
|
|
|
//'/common/TypingTests.js',
|
|
|
|
'/customize/messages.js',
|
|
|
|
'/customize/messages.js',
|
|
|
|
'/pad/links.js',
|
|
|
|
'/pad/links.js',
|
|
|
|
'/pad/comments.js',
|
|
|
|
'/pad/comments.js',
|
|
|
@ -42,8 +42,8 @@ define([
|
|
|
|
'/common/common-ui-elements.js',
|
|
|
|
'/common/common-ui-elements.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/bower_components/chainpad/chainpad.dist.js',
|
|
|
|
'/bower_components/chainpad/chainpad.dist.js',
|
|
|
|
'/customize/application_config.js',
|
|
|
|
//'/customize/application_config.js',
|
|
|
|
'/common/test.js',
|
|
|
|
//'/common/test.js',
|
|
|
|
|
|
|
|
|
|
|
|
'/lib/diff-dom/diffDOM.js',
|
|
|
|
'/lib/diff-dom/diffDOM.js',
|
|
|
|
'/bower_components/file-saver/FileSaver.min.js',
|
|
|
|
'/bower_components/file-saver/FileSaver.min.js',
|
|
|
@ -57,7 +57,7 @@ define([
|
|
|
|
Hyperjson,
|
|
|
|
Hyperjson,
|
|
|
|
Framework,
|
|
|
|
Framework,
|
|
|
|
Cursor,
|
|
|
|
Cursor,
|
|
|
|
TypingTest,
|
|
|
|
//TypingTest,
|
|
|
|
Messages,
|
|
|
|
Messages,
|
|
|
|
Links,
|
|
|
|
Links,
|
|
|
|
Comments,
|
|
|
|
Comments,
|
|
|
@ -71,9 +71,9 @@ define([
|
|
|
|
UI,
|
|
|
|
UI,
|
|
|
|
UIElements,
|
|
|
|
UIElements,
|
|
|
|
h,
|
|
|
|
h,
|
|
|
|
ChainPad,
|
|
|
|
ChainPad/*,
|
|
|
|
AppConfig,
|
|
|
|
AppConfig,
|
|
|
|
Test
|
|
|
|
Test */
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
var DiffDom = window.diffDOM;
|
|
|
|
var DiffDom = window.diffDOM;
|
|
|
|
|
|
|
|
|
|
|
@ -1249,6 +1249,7 @@ define([
|
|
|
|
// export the typing tests to the window.
|
|
|
|
// export the typing tests to the window.
|
|
|
|
// call like `test = easyTest()`
|
|
|
|
// call like `test = easyTest()`
|
|
|
|
// terminate the test like `test.cancel()`
|
|
|
|
// terminate the test like `test.cancel()`
|
|
|
|
|
|
|
|
/*
|
|
|
|
window.easyTest = function() {
|
|
|
|
window.easyTest = function() {
|
|
|
|
cursor.update();
|
|
|
|
cursor.update();
|
|
|
|
//var start = cursor.Range.start;
|
|
|
|
//var start = cursor.Range.start;
|
|
|
@ -1257,6 +1258,7 @@ define([
|
|
|
|
framework.localChange();
|
|
|
|
framework.localChange();
|
|
|
|
return test;
|
|
|
|
return test;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Fix the scrollbar if it's reset when clicking on a button (firefox only?)
|
|
|
|
// Fix the scrollbar if it's reset when clicking on a button (firefox only?)
|
|
|
@ -1509,6 +1511,7 @@ define([
|
|
|
|
Links.init(Ckeditor, editor, openLinkSetting);
|
|
|
|
Links.init(Ckeditor, editor, openLinkSetting);
|
|
|
|
require(['/pad/csp.js'], waitFor());
|
|
|
|
require(['/pad/csp.js'], waitFor());
|
|
|
|
}).nThen(function( /*waitFor*/ ) {
|
|
|
|
}).nThen(function( /*waitFor*/ ) {
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
function launchAnchorTest(test) {
|
|
|
|
function launchAnchorTest(test) {
|
|
|
|
// -------- anchor test: make sure the exported anchor contains <a name="..."> -------
|
|
|
|
// -------- anchor test: make sure the exported anchor contains <a name="..."> -------
|
|
|
@ -1572,16 +1575,17 @@ define([
|
|
|
|
if (editor.status === "ready") {
|
|
|
|
if (editor.status === "ready") {
|
|
|
|
window.clearInterval(intervalHandle);
|
|
|
|
window.clearInterval(intervalHandle);
|
|
|
|
console.log("Editor is ready.");
|
|
|
|
console.log("Editor is ready.");
|
|
|
|
tryAndTestExport();
|
|
|
|
tryAndTestExport(); // XXX
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log("Waiting for editor to be ready.");
|
|
|
|
console.log("Waiting for editor to be ready.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, 100);
|
|
|
|
}, 100);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
Test(function(test) {
|
|
|
|
Test(function(test) {
|
|
|
|
|
|
|
|
|
|
|
|
launchAnchorTest(test);
|
|
|
|
launchAnchorTest(test);
|
|
|
|
});
|
|
|
|
});*/
|
|
|
|
andThen2(editor, Ckeditor, framework);
|
|
|
|
andThen2(editor, Ckeditor, framework);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|