(e)
| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected