|
|
@ -112,7 +112,9 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
var drawPreview = Cryptpad.throttle(function () {
|
|
|
|
var drawPreview = Cryptpad.throttle(function () {
|
|
|
|
if (CodeMirror.highlightMode !== 'markdown') { return; }
|
|
|
|
if (CodeMirror.highlightMode !== 'markdown') { return; }
|
|
|
|
|
|
|
|
try {
|
|
|
|
DiffMd.apply(DiffMd.render(editor.getValue()), $preview);
|
|
|
|
DiffMd.apply(DiffMd.render(editor.getValue()), $preview);
|
|
|
|
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
}, 150);
|
|
|
|
}, 150);
|
|
|
|
|
|
|
|
|
|
|
|
var onLocal = config.onLocal = function () {
|
|
|
|
var onLocal = config.onLocal = function () {
|
|
|
|