|
|
@ -154,18 +154,22 @@ define([
|
|
|
|
updateFontSize();
|
|
|
|
updateFontSize();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Slide.update = function (content) {
|
|
|
|
Slide.update = function (content, force) {
|
|
|
|
updateFontSize();
|
|
|
|
updateFontSize();
|
|
|
|
if (!content) { content = ''; }
|
|
|
|
if (!content) { content = ''; }
|
|
|
|
var old = Slide.content;
|
|
|
|
var old = Slide.content;
|
|
|
|
Slide.content = content.replace(/\n\s*\-\-\-\s*\n/g, '\n\n'+separator+'\n\n');
|
|
|
|
Slide.content = content.replace(/\n\s*\-\-\-\s*\n/g, '\n\n'+separator+'\n\n');
|
|
|
|
if (old !== Slide.content) {
|
|
|
|
if (force || old !== Slide.content) {
|
|
|
|
draw(Slide.index);
|
|
|
|
draw(Slide.index);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
change(Slide.lastIndex, Slide.index);
|
|
|
|
change(Slide.lastIndex, Slide.index);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DiffMd.onPluginLoaded(function () {
|
|
|
|
|
|
|
|
Slide.update(Slide.content, true);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Slide.left = function () {
|
|
|
|
Slide.left = function () {
|
|
|
|
console.log('left');
|
|
|
|
console.log('left');
|
|
|
|
Slide.lastIndex = Slide.index;
|
|
|
|
Slide.lastIndex = Slide.index;
|
|
|
|