@wiris/mathtype-ckeditor5 8.9.2 → 8.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,8 +22,31 @@ Easily include quality math equations in your documents and digital content.
22
22
 
23
23
  2. Update the CKEditor configuration by adding the new plugin and including the MathType and ChemType buttons:
24
24
 
25
+ Using the legacy methods of installation:
26
+
27
+ ```js
28
+ import MathType from '@wiris/mathtype-ckeditor5';
29
+
30
+ ...
31
+
32
+ ClassicEditor
33
+ .create( editorElement, {
34
+ plugins: [ ..., MathType, ... ],
35
+ toolbar: {
36
+ items: [
37
+ ...
38
+ 'MathType',
39
+ 'ChemType',
40
+ ...
41
+ ]
42
+ },
43
+ ```
44
+
45
+ And when uses `CKEditor5` without legacy methods of installation:
46
+
25
47
  ```js
26
- import MathType from '@wiris/mathtype-ckeditor5/src/plugin';
48
+ import { ClassicEditor } from 'ckeditor5';
49
+ import MathType from '@wiris/mathtype-ckeditor5/dist/index.js';
27
50
 
28
51
  ...
29
52
 
File without changes
@@ -0,0 +1,626 @@
1
+ .wrs_modal_overlay{
2
+ position:fixed;
3
+ font-family:arial, sans-serif;
4
+ top:0;
5
+ right:0;
6
+ left:0;
7
+ bottom:0;
8
+ background:rgba(0, 0, 0, 0.8);
9
+ z-index:999998;
10
+ opacity:0.65;
11
+ pointer-events:auto;
12
+ }
13
+
14
+ .wrs_modal_overlay.wrs_modal_ios{
15
+ visibility:hidden;
16
+ display:none;
17
+ }
18
+
19
+ .wrs_modal_overlay.wrs_modal_android{
20
+ visibility:hidden;
21
+ display:none;
22
+ }
23
+
24
+ .wrs_modal_overlay.wrs_modal_ios.moodle{
25
+ position:fixed;
26
+ }
27
+
28
+ .wrs_modal_overlay.wrs_modal_desktop.wrs_stack{
29
+ background:rgba(0, 0, 0, 0);
30
+ display:none;
31
+ }
32
+
33
+ .wrs_modal_overlay.wrs_modal_desktop.wrs_maximized{
34
+ background:rgba(0, 0, 0, 0.8);
35
+ }
36
+
37
+ .wrs_modal_overlay.wrs_modal_desktop.wrs_minimized{
38
+ background:rgba(0, 0, 0, 0);
39
+ display:none;
40
+ }
41
+
42
+ .wrs_modal_overlay.wrs_modal_desktop.wrs_closed{
43
+ background:rgba(0, 0, 0, 0);
44
+ display:none;
45
+ }
46
+
47
+ .wrs_modal_title{
48
+ color:#fff;
49
+ padding:5px 0 5px 10px;
50
+ -moz-user-select:none;
51
+ -webkit-user-select:none;
52
+ -ms-user-select:none;
53
+ user-select:none;
54
+ text-align:left;
55
+ }
56
+
57
+ .wrs_modal_close_button{
58
+ float:right;
59
+ cursor:pointer;
60
+ color:#fff;
61
+ padding:5px 10px 5px 0;
62
+ margin:10px 7px 0 0;
63
+ background-repeat:no-repeat;
64
+ }
65
+
66
+ .wrs_modal_minimize_button{
67
+ float:right;
68
+ cursor:pointer;
69
+ color:#fff;
70
+ padding:5px 10px 5px 0;
71
+ top:inherit;
72
+ margin:10px 7px 0 0;
73
+ }
74
+
75
+ .wrs_modal_stack_button{
76
+ float:right;
77
+ cursor:pointer;
78
+ color:#fff;
79
+ margin:10px 7px 0 0;
80
+ padding:5px 10px 5px 0;
81
+ top:inherit;
82
+ }
83
+
84
+ .wrs_modal_stack_button.wrs_stack{
85
+ visibility:hidden;
86
+ margin:0;
87
+ padding:0;
88
+ }
89
+
90
+ .wrs_modal_stack_button.wrs_minimized{
91
+ visibility:hidden;
92
+ margin:0;
93
+ padding:0;
94
+ }
95
+
96
+ .wrs_modal_maximize_button{
97
+ float:right;
98
+ cursor:pointer;
99
+ color:#fff;
100
+ margin:10px 7px 0 0;
101
+ padding:5px 10px 5px 0;
102
+ top:inherit;
103
+ }
104
+
105
+ .wrs_modal_maximize_button.wrs_maximized{
106
+ visibility:hidden;
107
+ margin:0;
108
+ padding:0;
109
+ }
110
+
111
+ .wrs_modal_title_bar{
112
+ display:block;
113
+ background-color:#778e9a;
114
+ }
115
+
116
+ .wrs_modal_dialogContainer{
117
+ border:none;
118
+ background:#fafafa;
119
+ z-index:999999;
120
+ }
121
+
122
+ .wrs_modal_dialogContainer.wrs_modal_desktop{
123
+ font-size:14px;
124
+ }
125
+
126
+ .wrs_modal_dialogContainer.wrs_modal_desktop.wrs_maximized{
127
+ position:fixed;
128
+ }
129
+
130
+ .wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized{
131
+ position:fixed;
132
+ top:inherit;
133
+ margin:0;
134
+ margin-right:10px;
135
+ }
136
+
137
+ .wrs_modal_dialogContainer.wrs_closed{
138
+ visibility:hidden;
139
+ display:none;
140
+ opacity:0;
141
+ }
142
+
143
+ .wrs_modal_dialogContainer.wrs_modal_desktop.wrs_stack{
144
+ position:fixed;
145
+ bottom:0;
146
+ right:0;
147
+ box-shadow:rgba(0, 0, 0, 0.5) 0 2px 8px;
148
+ }
149
+
150
+ .wrs_modal_dialogContainer.wrs_drag{
151
+ box-shadow:rgba(0, 0, 0, 0.5) 0 2px 8px;
152
+ }
153
+
154
+ .wrs_modal_dialogContainer.wrs_modal_desktop.wrs_drag{
155
+ box-shadow:rgba(0, 0, 0, 0.5) 0 2px 8px;
156
+ }
157
+
158
+ .wrs_modal_dialogContainer.wrs_modal_android{
159
+ margin:auto;
160
+ position:fixed;
161
+ width:99%;
162
+ height:99%;
163
+ overflow:hidden;
164
+ transform:translate(50%, -50%);
165
+ top:50%;
166
+ right:50% !important;
167
+ }
168
+
169
+ .wrs_modal_dialogContainer.wrs_modal_ios{
170
+ margin:auto;
171
+ position:fixed;
172
+ width:100%;
173
+ height:100%;
174
+ overflow:hidden;
175
+ transform:translate(50%, -50%);
176
+ top:50%;
177
+ right:50% !important;
178
+ }
179
+
180
+ .wrs_content_container.wrs_minimized{
181
+ display:none;
182
+ }
183
+
184
+ .wrs_content_container.wrs_modal_android{
185
+ width:100%;
186
+ height:0%;
187
+ flex-grow:1;
188
+ display:flex;
189
+ flex-direction:column;
190
+ }
191
+
192
+ .wrs_content_container.wrs_modal_android > div:first-child{
193
+ flex-grow:1;
194
+ }
195
+
196
+ .wrs_content_container.wrs_modal_ios > div:first-child{
197
+ flex-grow:1;
198
+ }
199
+
200
+ .wrs_content_container.wrs_modal_desktop > div:first-child{
201
+ flex-grow:1;
202
+ }
203
+
204
+ .wrs_modal_wrapper.wrs_modal_android{
205
+ margin:auto;
206
+ display:flex;
207
+ flex-direction:column;
208
+ height:100%;
209
+ width:100%;
210
+ }
211
+
212
+ .wrs_content_container.wrs_modal_desktop{
213
+ width:100%;
214
+ flex-grow:1;
215
+ display:flex;
216
+ flex-direction:column;
217
+ }
218
+
219
+ .wrs_content_container.wrs_modal_ios{
220
+ width:100%;
221
+ height:0%;
222
+ flex-grow:1;
223
+ display:flex;
224
+ flex-direction:column;
225
+ }
226
+
227
+ .wrs_modal_wrapper.wrs_modal_ios{
228
+ margin:auto;
229
+ display:flex;
230
+ flex-direction:column;
231
+ height:100%;
232
+ width:100%;
233
+ }
234
+
235
+ .wrs_virtual_keyboard{
236
+ height:100%;
237
+ width:100%;
238
+ top:0;
239
+ left:50%;
240
+ transform:translate(-50%, 0%);
241
+ }
242
+
243
+ @media all and (orientation: portrait){
244
+ .wrs_modal_dialogContainer.wrs_modal_mobile{
245
+ width:100vmin;
246
+ height:100vmin;
247
+ margin:auto;
248
+ border-width:0;
249
+ }
250
+
251
+ .wrs_modal_wrapper.wrs_modal_mobile{
252
+ width:100vmin;
253
+ height:100vmin;
254
+ margin:auto;
255
+ }
256
+ }
257
+
258
+ @media all and (orientation: landscape){
259
+ .wrs_modal_dialogContainer.wrs_modal_mobile{
260
+ width:100vmin;
261
+ height:100vmin;
262
+ margin:auto;
263
+ border-width:0;
264
+ }
265
+
266
+ .wrs_modal_wrapper.wrs_modal_mobile{
267
+ width:100vmin;
268
+ height:100vmin;
269
+ margin:auto;
270
+ }
271
+ }
272
+
273
+ .wrs_modal_dialogContainer.wrs_modal_badStock{
274
+ width:100%;
275
+ height:280px;
276
+ margin:0 auto;
277
+ border-width:0;
278
+ }
279
+
280
+ .wrs_modal_wrapper.wrs_modal_badStock{
281
+ width:100%;
282
+ height:280px;
283
+ margin:0 auto;
284
+ border-width:0;
285
+ }
286
+
287
+ .wrs_noselect{
288
+ -moz-user-select:none;
289
+ -khtml-user-select:none;
290
+ -webkit-user-select:none;
291
+ -ms-user-select:none;
292
+ user-select:none;
293
+ }
294
+
295
+ .wrs_bottom_right_resizer{
296
+ width:10px;
297
+ height:10px;
298
+ color:#778e9a;
299
+ position:absolute;
300
+ right:4px;
301
+ bottom:8px;
302
+ cursor:se-resize;
303
+ -moz-user-select:none;
304
+ -webkit-user-select:none;
305
+ -ms-user-select:none;
306
+ user-select:none;
307
+ }
308
+
309
+ .wrs_bottom_left_resizer{
310
+ width:15px;
311
+ height:15px;
312
+ color:#778e9a;
313
+ position:absolute;
314
+ left:0;
315
+ top:0;
316
+ cursor:se-resize;
317
+ }
318
+
319
+ .wrs_modal_controls{
320
+ height:42px;
321
+ margin:3px 0;
322
+ overflow:hidden;
323
+ line-height:normal;
324
+ }
325
+
326
+ .wrs_modal_links{
327
+ margin:10px auto;
328
+ margin-bottom:0;
329
+ font-family:arial, sans-serif;
330
+ padding:6px;
331
+ display:inline;
332
+ float:right;
333
+ text-align:right;
334
+ }
335
+
336
+ .wrs_modal_links > a{
337
+ text-decoration:none;
338
+ color:#778e9a;
339
+ font-size:16px;
340
+ }
341
+
342
+ .wrs_modal_button_cancel,
343
+ .wrs_modal_button_cancel:hover,
344
+ .wrs_modal_button_cancel:visited,
345
+ .wrs_modal_button_cancel:active,
346
+ .wrs_modal_button_cancel:focus{
347
+ min-width:80px;
348
+ font-size:14px;
349
+ border-radius:3px;
350
+ border:1px solid #778e9a;
351
+ padding:6px 8px;
352
+ margin:10px auto;
353
+ margin-left:5px;
354
+ margin-bottom:0;
355
+ cursor:pointer;
356
+ font-family:arial, sans-serif;
357
+ background-color:#ddd;
358
+ height:32px;
359
+ }
360
+
361
+ .wrs_modal_button_accept,
362
+ .wrs_modal_button_accept:hover,
363
+ .wrs_modal_button_accept:visited,
364
+ .wrs_modal_button_accept:active,
365
+ .wrs_modal_button_accept:focus{
366
+ min-width:80px;
367
+ font-size:14px;
368
+ border-radius:3px;
369
+ border:1px solid #778e9a;
370
+ padding:6px 8px;
371
+ margin:10px auto;
372
+ margin-right:5px;
373
+ margin-bottom:0;
374
+ color:#fff;
375
+ background:#778e9a;
376
+ cursor:pointer;
377
+ font-family:arial, sans-serif;
378
+ height:32px;
379
+ }
380
+
381
+ .wrs_editor_vertical_bar{
382
+ height:20px;
383
+ float:right;
384
+ background:none;
385
+ width:20px;
386
+ cursor:pointer;
387
+ }
388
+
389
+ .wrs_modal_buttons_container{
390
+ display:inline;
391
+ float:left;
392
+ }
393
+
394
+ .wrs_modal_buttons_container.wrs_modalAndroid{
395
+ padding-left:6px;
396
+ }
397
+
398
+ .wrs_modal_buttons_container.wrs_modalDesktop{
399
+ padding-left:0;
400
+ }
401
+
402
+ .wrs_modal_buttons_container > button{
403
+ line-height:normal;
404
+ background-image:none;
405
+ }
406
+
407
+ .wrs_modal_wrapper{
408
+ margin:6px;
409
+ display:flex;
410
+ flex-direction:column;
411
+ }
412
+
413
+ .wrs_modal_wrapper.wrs_modal_desktop.wrs_minimized{
414
+ display:none;
415
+ }
416
+
417
+ @media only screen and (max-device-width: 480px) and (orientation: portrait){
418
+ #wrs_modal_wrapper{
419
+ width:140%;
420
+ }
421
+ }
422
+
423
+ .wrs_popupmessage_overlay_envolture{
424
+ display:none;
425
+ width:100%;
426
+ }
427
+
428
+ .wrs_popupmessage_overlay{
429
+ position:absolute;
430
+ width:100%;
431
+ height:100%;
432
+ top:0;
433
+ left:0;
434
+ right:0;
435
+ bottom:0;
436
+ background-color:rgba(0, 0, 0, 0.5);
437
+ z-index:4;
438
+ cursor:pointer;
439
+ }
440
+
441
+ .wrs_popupmessage_panel{
442
+ top:50%;
443
+ left:50%;
444
+ transform:translate(-50%, -50%);
445
+ position:absolute;
446
+ background:white;
447
+ max-width:500px;
448
+ width:75%;
449
+ border-radius:2px;
450
+ padding:20px;
451
+ font-family:sans-serif;
452
+ font-size:15px;
453
+ text-align:left;
454
+ color:#2e2e2e;
455
+ z-index:5;
456
+ max-height:75%;
457
+ overflow:auto;
458
+ }
459
+
460
+ .wrs_popupmessage_button_area{
461
+ margin:10px 0 0 0;
462
+ }
463
+
464
+ .wrs_panelContainer *{
465
+ border:0;
466
+ }
467
+
468
+ .wrs_button_cancel,
469
+ .wrs_button_cancel:hover,
470
+ .wrs_button_cancel:visited,
471
+ .wrs_button_cancel:active,
472
+ .wrs_button_cancel:focus{
473
+ min-width:80px;
474
+ font-size:14px;
475
+ border-radius:3px;
476
+ border:1px solid #778e9a;
477
+ padding:6px 8px;
478
+ margin:10px auto;
479
+ margin-left:5px;
480
+ margin-bottom:0;
481
+ cursor:pointer;
482
+ font-family:arial, sans-serif;
483
+ background-color:#ddd;
484
+ background-image:none;
485
+ height:32px;
486
+ }
487
+
488
+ .wrs_button_accept,
489
+ .wrs_button_accept:hover,
490
+ .wrs_button_accept:visited,
491
+ .wrs_button_accept:active,
492
+ .wrs_button_accept:focus{
493
+ min-width:80px;
494
+ font-size:14px;
495
+ border-radius:3px;
496
+ border:1px solid #778e9a;
497
+ padding:6px 8px;
498
+ margin:10px auto;
499
+ margin-right:5px;
500
+ margin-bottom:0;
501
+ color:#fff;
502
+ background:#778e9a;
503
+ cursor:pointer;
504
+ font-family:arial, sans-serif;
505
+ height:32px;
506
+ }
507
+
508
+ .wrs_editor button{
509
+ box-shadow:none;
510
+ }
511
+
512
+ .wrs_editor .wrs_header button{
513
+ border-bottom:none;
514
+ border-bottom-left-radius:0;
515
+ border-bottom-right-radius:0;
516
+ }
517
+
518
+ .wrs_modal_overlay.wrs_modal_desktop.wrs_stack.wrs_overlay_active{
519
+ display:block;
520
+ }
521
+ .wrs_toolbar tr:focus{
522
+ background:none;
523
+ }
524
+
525
+ .wrs_toolbar tr:hover{
526
+ background:none;
527
+ }
528
+ .wrs_modal_rtl .wrs_modal_button_cancel{
529
+ margin-right:5px;
530
+ margin-left:0;
531
+ }
532
+
533
+ .wrs_modal_rtl .wrs_modal_button_accept{
534
+ margin-right:0;
535
+ margin-left:5px;
536
+ }
537
+
538
+ .wrs_modal_rtl .wrs_button_cancel{
539
+ margin-right:5px;
540
+ margin-left:0;
541
+ }
542
+
543
+ .wrs_modal_rtl .wrs_button_accept{
544
+ margin-right:0;
545
+ margin-left:5px;
546
+ }
547
+ .wrs_modal_offline{
548
+ display:none;
549
+ position:fixed;
550
+ z-index:2;
551
+ padding-top:150px;
552
+ left:0;
553
+ top:0;
554
+ width:100%;
555
+ height:100%;
556
+ overflow:auto;
557
+ background-color:rgb(0, 0, 0);
558
+ background-color:rgba(0, 0, 0, 0.4);
559
+ margin:auto;
560
+ }
561
+ .wrs_modal_content_offline{
562
+ margin:auto;
563
+ padding:16px;
564
+ background:#fff7ed;
565
+ border-radius:6px;
566
+ width:517px;
567
+ height:100px;
568
+ position:relative;
569
+ }
570
+ .wrs_modal_offline_close{
571
+ color:#c2410c;
572
+ font-size:24px;
573
+ font-weight:bold;
574
+ left:95.7%;
575
+ right:2.08%;
576
+ top:7.6%;
577
+ bottom:75%;
578
+ font-family:"Inter";
579
+ font-style:normal;
580
+ font-weight:400;
581
+ position:absolute;
582
+ }
583
+ .wrs_modal_offline_warn{
584
+ position:absolute;
585
+ left:2.08%;
586
+ right:94%;
587
+ top:11.6%;
588
+ bottom:75%;
589
+ font-size:24px;
590
+ color:#fb923c;
591
+ background-repeat:no-repeat;
592
+ }
593
+
594
+ .wrs_modal_offline_text_container{
595
+ position:absolute;
596
+ left:6.8%;
597
+ right:6.08%;
598
+ top:10.4%;
599
+ bottom:2%;
600
+ }
601
+
602
+ .wrs_modal_offline_text{
603
+ font-family:"Inter";
604
+ font-style:normal;
605
+ font-weight:400;
606
+ font-size:14px;
607
+ line-height:20px;
608
+ color:#c2410c;
609
+ }
610
+
611
+ .wrs_modal_offline_text_warn{
612
+ height:25px;
613
+ font-family:"Inter";
614
+ font-style:normal;
615
+ font-size:14px;
616
+ line-height:20px;
617
+ font-weight:bold;
618
+ color:#c2410c;
619
+ }
620
+
621
+ .wrs_modal_offline_close:hover,
622
+ .wrs_modal_offline_close:focus{
623
+ color:#000;
624
+ text-decoration:none;
625
+ cursor:pointer;
626
+ }