|
|
@ -84,6 +84,7 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var textContentGetter;
|
|
|
|
var titleRecommender = function () { return false; };
|
|
|
|
var titleRecommender = function () { return false; };
|
|
|
|
var contentGetter = function () { return UNINITIALIZED; };
|
|
|
|
var contentGetter = function () { return UNINITIALIZED; };
|
|
|
|
var normalize0 = function (x) { return x; };
|
|
|
|
var normalize0 = function (x) { return x; };
|
|
|
@ -284,6 +285,10 @@ define([
|
|
|
|
if (!readOnly) { onLocal(); }
|
|
|
|
if (!readOnly) { onLocal(); }
|
|
|
|
evOnReady.fire(newPad);
|
|
|
|
evOnReady.fire(newPad);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (AppConfig.textAnalyzer && textContentGetter) {
|
|
|
|
|
|
|
|
AppConfig.textAnalyzer(textContentGetter);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
UI.removeLoadingScreen(emitResize);
|
|
|
|
UI.removeLoadingScreen(emitResize);
|
|
|
|
|
|
|
|
|
|
|
|
var privateDat = cpNfInner.metadataMgr.getPrivateData();
|
|
|
|
var privateDat = cpNfInner.metadataMgr.getPrivateData();
|
|
|
@ -567,6 +572,10 @@ define([
|
|
|
|
// in the pad when requested by the framework.
|
|
|
|
// in the pad when requested by the framework.
|
|
|
|
setContentGetter: function (cg) { contentGetter = cg; },
|
|
|
|
setContentGetter: function (cg) { contentGetter = cg; },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Set a text content supplier, this is a function which will give a text
|
|
|
|
|
|
|
|
// representation of the pad content if a text analyzer is configured
|
|
|
|
|
|
|
|
setTextContentGetter: function (tcg) { textContentGetter = tcg; },
|
|
|
|
|
|
|
|
|
|
|
|
// Inform the framework that the content of the pad has been changed locally.
|
|
|
|
// Inform the framework that the content of the pad has been changed locally.
|
|
|
|
localChange: onLocal,
|
|
|
|
localChange: onLocal,
|
|
|
|
|
|
|
|
|
|
|
|