MCPcopy
hub / github.com/tinymce/tinymce / register

Function register

modules/tinymce/src/plugins/save/main/ts/api/Commands.ts:5–13  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

3import * as Actions from '../core/Actions';
4
5const register = (editor: Editor): void => {
6 editor.addCommand('mceSave', () => {
7 Actions.save(editor);
8 });
9
10 editor.addCommand('mceCancel', () => {
11 Actions.cancel(editor);
12 });
13};
14
15export {
16 register

Callers

nothing calls this directly

Calls 3

saveMethod · 0.80
cancelMethod · 0.80
addCommandMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…