all files / common/ config.js

100% Statements 12/12
100% Branches 0/0
100% Functions 1/1
100% Lines 12/12
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124                                                                                                                                                                                                                                
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.markdownFormatTags = {
        'h6': '###### ',
        'h5': '##### ',
        'h4': '#### ',
        'h3': '### ',
        'h2': '## ',
        'h1': '# ',
        'blockquote': '> ',
        'pre': '```\n',
        'p': ''
    };
    exports.markdownSelectionTags = {
        'Bold': '**',
        'Italic': '*',
        'StrikeThrough': '~~',
        'InlineCode': '`',
        'SubScript': '<sub>',
        'SuperScript': '<sup>',
        'UpperCase': 'A-Z',
        'LowerCase': 'a-z'
    };
    exports.markdownListsTags = {
        'OL': '1. ',
        'UL': '- '
    };
    exports.htmlKeyConfig = {
        'toolbar-focus': 'alt+f10',
        'escape': 'escape',
        'backspace': 'backspace',
        'insert-link': 'ctrl+k',
        'insert-image': 'ctrl+shift+i',
        'insert-audio': 'ctrl+shift+a',
        'insert-video': 'ctrl+alt+v',
        'insert-table': 'ctrl+shift+e',
        'undo': 'ctrl+z',
        'redo': 'ctrl+y',
        'copy': 'ctrl+c',
        'cut': 'ctrl+x',
        'paste': 'ctrl+v',
        'bold': 'ctrl+b',
        'italic': 'ctrl+i',
        'underline': 'ctrl+u',
        'strikethrough': 'ctrl+shift+s',
        'uppercase': 'ctrl+shift+u',
        'lowercase': 'ctrl+shift+l',
        'superscript': 'ctrl+shift+=',
        'subscript': 'ctrl+=',
        'indents': 'ctrl+]',
        'outdents': 'ctrl+[',
        'html-source': 'ctrl+shift+h',
        'full-screen': 'ctrl+shift+f',
        'decrease-fontsize': 'ctrl+shift+<',
        'increase-fontsize': 'ctrl+shift+>',
        'justify-center': 'ctrl+e',
        'justify-full': 'ctrl+j',
        'justify-left': 'ctrl+l',
        'justify-right': 'ctrl+r',
        'clear-format': 'ctrl+shift+r',
        'ordered-list': 'ctrl+shift+o',
        'unordered-list': 'ctrl+alt+o',
        'space': 'space',
        'enter': 'enter',
        'tab': 'tab',
        'delete': 'delete',
        'format-copy': 'alt+shift+c',
        'format-paste': 'alt+shift+v',
        'inlinecode': 'ctrl+`'
    };
    exports.markdownKeyConfig = {
        'toolbar-focus': 'alt+f10',
        'escape': '27',
        'insert-link': 'ctrl+k',
        'insert-image': 'ctrl+shift+i',
        'insert-table': 'ctrl+shift+e',
        'undo': 'ctrl+z',
        'redo': 'ctrl+y',
        'copy': 'ctrl+c',
        'cut': 'ctrl+x',
        'paste': 'ctrl+v',
        'bold': 'ctrl+b',
        'italic': 'ctrl+i',
        'strikethrough': 'ctrl+shift+s',
        'uppercase': 'ctrl+shift+u',
        'lowercase': 'ctrl+shift+l',
        'superscript': 'ctrl+shift+=',
        'subscript': 'ctrl+=',
        'full-screen': 'ctrl+shift+f',
        'ordered-list': 'ctrl+shift+o',
        'unordered-list': 'ctrl+alt+o'
    };
    exports.pasteCleanupGroupingTags = {
        'b': ['strong'],
        'strong': ['b'],
        'i': ['emp', 'cite'],
        'emp': ['i', 'cite'],
        'cite': ['i', 'emp']
    };
    exports.listConversionFilters = {
        'first': 'MsoListParagraphCxSpFirst',
        'middle': 'MsoListParagraphCxSpMiddle',
        'last': 'MsoListParagraphCxSpLast'
    };
    exports.selfClosingTags = [
        'BR',
        'IMG'
    ];
    exports.imageResizeFactor = {
        topLeft: [-1, -1],
        topRight: [1, -1],
        botRight: [1, 1],
        botLeft: [-1, 1]
    };
    exports.mentionRestrictKeys = [
        'ArrowUp',
        'ArrowDown',
        'Enter',
        'Tab',
        'Escape'
    ];
});