| 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228 | 1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
1×
| define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.KEY_DOWN = 'keydown';
exports.ACTION = 'action';
exports.FORMAT_TYPE = 'format-type';
exports.KEY_DOWN_HANDLER = 'keydown-handler';
exports.LIST_TYPE = 'list-type';
exports.CODE_BLOCK = 'code-block';
exports.KEY_UP_HANDLER = 'keyup-handler';
exports.KEY_UP = 'keyup';
exports.MODEL_CHANGED_PLUGIN = 'model_changed_plugin';
exports.MODEL_CHANGED = 'model_changed';
exports.MS_WORD_CLEANUP_PLUGIN = 'ms_word_cleanup_plugin';
exports.MS_WORD_CLEANUP = 'ms_word_cleanup';
exports.ON_BEGIN = 'onBegin';
exports.SPACE_ACTION = 'actionBegin';
exports.FORMAT_PAINTER_ACTIONS = 'format_painter_actions';
exports.AI_ASSISTANT_ACTIONS = 'ai_assistant_actions';
exports.BLOCKQUOTE_LIST_HANDLE = 'blockquote_list_handled';
exports.EMOJI_PICKER_ACTIONS = 'emoji_picker_actions';
exports.AUTO_FORMAT_ACTIONS = 'auto_format_actions';
exports.MOUSE_DOWN = 'mouseDown';
exports.DESTROY = 'destroy';
exports.INTERNAL_DESTROY = 'internal_destroy';
exports.CODEBLOCK_INDENTATION = 'codeblock_indentation';
exports.CODEBLOCK_DISABLETOOLBAR = 'codeblock_disabletoolbar';
exports.CLS_RTE_TABLE_RESIZE = 'e-rte-table-resize';
exports.CLS_TB_ROW_INSERT = 'e-tb-row-insert';
exports.CLS_TB_COL_INSERT = 'e-tb-col-insert';
exports.CLS_TB_DASH_BOR = 'e-dashed-border';
exports.CLS_TB_ALT_BOR = 'e-alternate-border';
exports.CLS_TB_COL_RES = 'e-column-resize';
exports.CLS_TB_ROW_RES = 'e-row-resize';
exports.CLS_TB_BOX_RES = 'e-table-box';
exports.CLS_IMG_FOCUS = 'e-img-focus';
exports.CLS_TABLE_SEL = 'e-cell-select';
exports.CLS_TABLE_SEL_END = 'e-cell-select-end';
exports.CLS_TABLE_MULTI_CELL = 'e-multi-cells-select';
exports.CLS_AUD_FOCUS = 'e-audio-focus';
exports.CLS_VID_FOCUS = 'e-video-focus';
exports.CLS_RTE_DRAG_IMAGE = 'e-rte-drag-image';
exports.CLS_RESIZE = 'e-resize';
exports.hideTableQuickToolbar = 'hideTableQuickToolbar';
exports.touchStart = 'touchStart';
exports.touchEnd = 'touchEnd';
exports.cut = 'cut';
exports.dragEnterEvent = 'dragEnter_Event';
exports.dragOverEvent = 'dragOver_Event';
exports.dragStartEvent = 'dragStart_Event';
exports.dropEvent = 'drop_Event';
exports.dragEnter = 'dragEnter';
exports.dragDrop = 'dragDrop';
exports.dragOver = 'dragOver';
exports.dropEventHandler = 'drop';
exports.supportedUnits = ['px', 'em', 'rem', 'pt', 'cm', 'mm', 'in', 'pc', 'vw', 'vh', 'vmin', 'vmax'];
exports.conversionFactors = {
'px': {
'px': 1,
'em': 0.0625,
'rem': 0.0625,
'pt': 0.75,
'cm': 0.0264583,
'mm': 0.0026458,
'in': 0.0104167,
'pc': 0.0625,
'vw': 0.00625,
'vh': 0.00625,
'vmin': 0.00625,
'vmax': 0.00625
},
'em': {
'px': 16,
'em': 1,
'rem': 1,
'pt': 12,
'cm': 0.423333,
'mm': 0.0423333,
'in': 0.166667,
'pc': 0.0625,
'vw': 1,
'vh': 1,
'vmin': 1,
'vmax': 1
},
'rem': {
'px': 16,
'em': 1,
'rem': 1,
'pt': 12,
'cm': 0.423333,
'mm': 0.0423333,
'in': 0.166667,
'pc': 0.0625,
'vw': 1,
'vh': 1,
'vmin': 1,
'vmax': 1
},
'pt': {
'px': 1.33333,
'em': 0.0833333,
'rem': 0.0833333,
'pt': 1,
'cm': 0.0352778,
'mm': 0.0035278,
'in': 0.0138889,
'pc': 0.0416667,
'vw': 0.00416667,
'vh': 0.00416667,
'vmin': 0.00416667,
'vmax': 0.00416667
},
'cm': {
'px': 37.7953,
'em': 2.3622,
'rem': 2.3622,
'pt': 28.3465,
'cm': 1,
'mm': 0.1,
'in': 0.393701,
'pc': 0.148148,
'vw': 0.0377953,
'vh': 0.0377953,
'vmin': 0.0377953,
'vmax': 0.0377953
},
'mm': {
'px': 3.77953,
'em': 0.23622,
'rem': 0.23622,
'pt': 2.83465,
'cm': 10,
'mm': 1,
'in': 0.0393701,
'pc': 0.0148148,
'vw': 0.00377953,
'vh': 0.00377953,
'vmin': 0.00377953,
'vmax': 0.00377953
},
'in': {
'px': 96,
'em': 6,
'rem': 6,
'pt': 72,
'cm': 2.54,
'mm': 25.4,
'in': 1,
'pc': 0.375,
'vw': 0.09375,
'vh': 0.09375,
'vmin': 0.09375,
'vmax': 0.09375
},
'pc': {
'px': 16,
'em': 1,
'rem': 1,
'pt': 12,
'cm': 0.423333,
'mm': 0.0423333,
'in': 0.166667,
'pc': 1,
'vw': 0.0625,
'vh': 0.0625,
'vmin': 0.0625,
'vmax': 0.0625
},
'vw': {
'px': 160,
'em': 10,
'rem': 10,
'pt': 120,
'cm': 4.23333,
'mm': 0.423333,
'in': 1.66667,
'pc': 0.625,
'vw': 1,
'vh': 1,
'vmin': 1,
'vmax': 1
},
'vh': {
'px': 160,
'em': 10,
'rem': 10,
'pt': 120,
'cm': 4.23333,
'mm': 0.423333,
'in': 1.66667,
'pc': 0.625,
'vw': 1,
'vh': 1,
'vmin': 1,
'vmax': 1
},
'vmin': {
'px': 160,
'em': 10,
'rem': 10,
'pt': 120,
'cm': 4.23333,
'mm': 0.423333,
'in': 1.66667,
'pc': 0.625,
'vw': 1,
'vh': 1,
'vmin': 1,
'vmax': 1
},
'vmax': {
'px': 160,
'em': 10,
'rem': 10,
'pt': 120,
'cm': 4.23333,
'mm': 0.423333,
'in': 1.66667,
'pc': 0.625,
'vw': 1,
'vh': 1,
'vmin': 1,
'vmax': 1
}
};
});
|