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 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1× 1731× 1× 1× 1× 1× 1× 1× 1× 1× | /* istanbul ignore next */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); /* istanbul ignore next */ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; define(["require", "exports", "@syncfusion/ej2-base", "../base/enum"], function (require, exports, ej2_base_1, enum_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var SlashMenuSettings = (function (_super) { __extends(SlashMenuSettings, _super); function SlashMenuSettings() { return _super !== null && _super.apply(this, arguments) || this; } __decorate([ ej2_base_1.Property(false) ], SlashMenuSettings.prototype, "enable", void 0); __decorate([ ej2_base_1.Property(['Paragraph', 'Heading 1', 'Heading 2', 'Heading 3', 'Heading 4', 'OrderedList', 'UnorderedList', 'CodeBlock', 'Blockquote']) ], SlashMenuSettings.prototype, "items", void 0); __decorate([ ej2_base_1.Property('300px') ], SlashMenuSettings.prototype, "popupWidth", void 0); __decorate([ ej2_base_1.Property('320px') ], SlashMenuSettings.prototype, "popupHeight", void 0); return SlashMenuSettings; }(ej2_base_1.ChildProperty)); exports.SlashMenuSettings = SlashMenuSettings; exports.defaultSlashMenuDataModel = [ { command: 'Paragraph', subCommand: 'p', type: 'Basic Block', iconCss: 'e-rte-paragraph' }, { command: 'Heading 1', subCommand: 'h1', type: 'Basic Block', iconCss: 'e-rte-h1' }, { command: 'Heading 2', subCommand: 'h2', type: 'Basic Block', iconCss: 'e-rte-h2' }, { command: 'Heading 3', subCommand: 'h3', type: 'Basic Block', iconCss: 'e-rte-h3' }, { command: 'Heading 4', subCommand: 'h4', type: 'Basic Block', iconCss: 'e-rte-h4' }, { command: 'OrderedList', subCommand: 'insertOrderedList', type: 'Basic Block', iconCss: 'e-list-ordered e-icons' }, { command: 'UnorderedList', subCommand: 'insertUnorderedList', type: 'Basic Block', iconCss: 'e-list-unordered e-icons' }, { command: 'Blockquote', subCommand: 'blockquote', type: 'Basic Block', iconCss: 'e-blockquote e-icons' }, { command: 'CodeBlock', subCommand: 'pre', type: 'Basic Block', iconCss: 'e-code-view e-icons' } ]; exports.injectibleSlashMenuDataModel = [ { command: 'Image', subCommand: enum_1.DialogType.InsertImage, type: 'Media', module: 'Image', iconCss: 'e-icons e-image' }, { command: 'Audio', subCommand: enum_1.DialogType.InsertAudio, type: 'Media', module: 'Audio', iconCss: 'e-icons e-audio' }, { command: 'Video', subCommand: enum_1.DialogType.InsertVideo, type: 'Media', module: 'Video', iconCss: 'e-icons e-video' }, { command: 'Link', subCommand: enum_1.DialogType.InsertLink, type: 'Inline', module: 'Link', iconCss: 'e-icons e-link' }, { command: 'Table', subCommand: enum_1.DialogType.InsertTable, type: 'Basic Block', module: 'Table', iconCss: 'e-icons e-table' }, { command: 'Emojipicker', subCommand: null, type: 'Inline', module: 'EmojiPicker', iconCss: 'e-icons e-emoji' } ]; }); |