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

Function beforeEvent

static/wangEditor/js/wangEditor.js:4492–4501  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

4490
4491 var isOrderedList;
4492 function beforeEvent(e) {
4493 if (editor.queryCommandState('InsertOrderedList')) {
4494 isOrderedList = true;
4495
4496 // 先取消有序列表
4497 editor.command(e, 'InsertOrderedList');
4498 } else {
4499 isOrderedList = false;
4500 }
4501 }
4502
4503 function afterEvent(e) {
4504 if (isOrderedList) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected