MCPcopy Create free account
hub / github.com/TruthHun/BookStack / command

Function command

static/wangEditor/js/wangEditor.js:7440–7456  ·  view source on GitHub ↗
(e, callback)

Source from the content-addressed store, hash-verified

7438 // 统一执行命令的方法
7439 var commandFn;
7440 function command(e, callback) {
7441 // 执行命令之前,先存储html内容
7442 html = $txt.html();
7443 // 监控内容变化
7444 var cb = function () {
7445 if (callback) {
7446 callback();
7447 }
7448 if (html !== $txt.html()) {
7449 $txt.change();
7450 }
7451 };
7452 // 执行命令
7453 if (commandFn) {
7454 editor.customCommand(e, commandFn, cb);
7455 }
7456 }
7457
7458 // 删除
7459 $delete.click(function (e) {

Callers 1

bindEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected