All files / roosterjs-content-model-dom/lib/constants ChangeSource.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65        1x                                                                                                                        
/**
 * Possible change sources. Here are the predefined sources.
 * It can also be other string if the change source can't fall into these sources.
 */
export const ChangeSource = {
    /**
     * Content changed by auto link
     */
    AutoLink: 'AutoLink',
    /**
     * Content changed by create link
     */
    CreateLink: 'CreateLink',
    /**
     * Content changed by format
     */
    Format: 'Format',
    /**
     * Content changed by image resize
     */
    ImageResize: 'ImageResize',
    /**
     * Content changed by paste
     */
    Paste: 'Paste',
    /**
     * Content changed by setContent API
     */
    SetContent: 'SetContent',
    /**
     * Content changed by cut operation
     */
    Cut: 'Cut',
    /**
     * Content changed by drag & drop operation
     */
    Drop: 'Drop',
    /**
     * Insert a new entity into editor
     */
    InsertEntity: 'InsertEntity',
    /**
     * Editor is switched to dark mode, content color is changed
     */
    SwitchToDarkMode: 'SwitchToDarkMode',
    /**
     * Editor is switched to light mode, content color is changed
     */
    SwitchToLightMode: 'SwitchToLightMode',
    /**
     * List chain reorganized numbers of lists
     */
    ListChain: 'ListChain',
    /**
     * Keyboard event, used by Content Model.
     * Data of this event will be the key code number
     */
    Keyboard: 'Keyboard',
 
    /**
     * Content changed by auto format
     */
    AutoFormat: 'AutoFormat',
};