undo md
This commit is contained in:
22
public/dist/main.js
vendored
22
public/dist/main.js
vendored
@ -30763,6 +30763,7 @@ define('editor',[
|
||||
|
||||
editor.focus = focus;
|
||||
|
||||
// 历史记录
|
||||
function UndoMgr() {
|
||||
var undoStack = [];
|
||||
var redoStack = [];
|
||||
@ -31416,7 +31417,8 @@ define('editor',[
|
||||
function highlight(section) {
|
||||
var text = escape(section.text);
|
||||
|
||||
if(!window.viewerMode) {
|
||||
// MDPureText 不用Prism
|
||||
if(!window.LEAMDPureText) {
|
||||
// log("pre")
|
||||
// log(text);
|
||||
// # lif
|
||||
@ -33858,6 +33860,14 @@ define('core',[
|
||||
// strings: "Markdown syntax"
|
||||
});
|
||||
|
||||
MD.pagedownEditor = pagedownEditor;
|
||||
// 重置undo
|
||||
// 11/12
|
||||
MD.clearUndo = function () {
|
||||
MD.undoMgr.init();
|
||||
MD.pagedownEditor.uiManager.setUndoRedoButtonStates();
|
||||
};
|
||||
|
||||
MD.insertLink2 = pagedownEditor.insertLink;
|
||||
|
||||
// Custom insert link dialog
|
||||
@ -33906,7 +33916,7 @@ define('core',[
|
||||
$("#wmd-ulist-button").append($('<i class="fa fa-list-ul">')).appendTo($btnGroupElt);
|
||||
$("#wmd-heading-button").append($('<i class="fa fa-header">')).appendTo($btnGroupElt);
|
||||
$("#wmd-hr-button").append($('<i class="fa fa-ellipsis-h">')).appendTo($btnGroupElt);
|
||||
$btnGroupElt = $('.wmd-button-group5');
|
||||
$btnGroupElt = $('.wmd-button-group4');
|
||||
$("#wmd-undo-button").append($('<i class="fa fa-undo">')).appendTo($btnGroupElt);
|
||||
$("#wmd-redo-button").append($('<i class="fa fa-repeat">')).appendTo($btnGroupElt);
|
||||
$("#wmd-help-button").show();
|
||||
@ -34803,7 +34813,7 @@ requirejs.config({
|
||||
// bootstrap: 'bower-libs/bootstrap/dist/js/bootstrap',
|
||||
requirejs: 'bower-libs/requirejs/require',
|
||||
'google-code-prettify': 'bower-libs/google-code-prettify/src/prettify',
|
||||
highlightjs: 'libs/highlight/highlight.pack',
|
||||
// highlightjs: 'libs/highlight/highlight.pack',
|
||||
'jquery-waitforimages': 'bower-libs/waitForImages/src/jquery.waitforimages',
|
||||
// FileSaver: 'bower-libs/FileSaver/FileSaver',
|
||||
// stacktrace: 'bower-libs/stacktrace/stacktrace',
|
||||
@ -34896,9 +34906,9 @@ requirejs.config({
|
||||
MutationObservers: [
|
||||
'WeakMap'
|
||||
],
|
||||
highlightjs: {
|
||||
exports: 'hljs'
|
||||
},
|
||||
// highlightjs: {
|
||||
// exports: 'hljs'
|
||||
// },
|
||||
'jquery-waitforimages': [
|
||||
],
|
||||
pagedown: [
|
||||
|
4
public/dist/main.min.js
vendored
4
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user