|
|
@ -403,6 +403,10 @@ define([
|
|
|
|
updateLocalColors(md.color, md.backColor);
|
|
|
|
updateLocalColors(md.color, md.backColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
updateLocalColors: updateLocalColors
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var mkFilePicker = function (framework, editor) {
|
|
|
|
var mkFilePicker = function (framework, editor) {
|
|
|
@ -473,7 +477,7 @@ define([
|
|
|
|
mkThemeButton(framework);
|
|
|
|
mkThemeButton(framework);
|
|
|
|
mkPrintButton(framework, editor, $content, $print);
|
|
|
|
mkPrintButton(framework, editor, $content, $print);
|
|
|
|
mkSlideOptionsButton(framework, slideOptions, $toolbarDrawer);
|
|
|
|
mkSlideOptionsButton(framework, slideOptions, $toolbarDrawer);
|
|
|
|
mkColorConfiguration(framework, $modal);
|
|
|
|
var colors = mkColorConfiguration(framework, $modal);
|
|
|
|
mkFilePicker(framework, editor);
|
|
|
|
mkFilePicker(framework, editor);
|
|
|
|
mkSlidePreviewPane(framework, $contentContainer);
|
|
|
|
mkSlidePreviewPane(framework, $contentContainer);
|
|
|
|
|
|
|
|
|
|
|
@ -518,9 +522,13 @@ define([
|
|
|
|
return CodeMirror.getHeadingText();
|
|
|
|
return CodeMirror.getHeadingText();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
framework.onReady(function (/*newPad*/) {
|
|
|
|
framework.onReady(function (newPad) {
|
|
|
|
editor.focus();
|
|
|
|
editor.focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (newPad) {
|
|
|
|
|
|
|
|
colors.updateLocalColors('#000', '#FFF');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CodeMirror.setMode('markdown', function () { });
|
|
|
|
CodeMirror.setMode('markdown', function () { });
|
|
|
|
Slide.onChange(function (o, n, l) {
|
|
|
|
Slide.onChange(function (o, n, l) {
|
|
|
|
var slideNumber = '';
|
|
|
|
var slideNumber = '';
|
|
|
|