@wiris/mathtype-ckeditor5 8.14.0 → 8.15.1
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 +1 -0
- package/dist/browser/index-editor.css +16 -1
- package/dist/browser/index.css +17 -0
- package/dist/browser/index.css.map +1 -1
- package/dist/browser/index.js +139 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.umd.js +139 -11
- package/dist/browser/index.umd.js.map +1 -1
- package/dist/index-editor.css +15 -0
- package/dist/index.css +18 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +85 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/integration.js +17 -3
- package/src/plugin.js +94 -5
- package/theme/styles.css +28 -0
package/README.md
CHANGED
|
@@ -47,6 +47,7 @@ Easily include quality math equations in your documents and digital content.
|
|
|
47
47
|
```js
|
|
48
48
|
import { ClassicEditor } from 'ckeditor5';
|
|
49
49
|
import MathType from '@wiris/mathtype-ckeditor5/dist/index.js';
|
|
50
|
+
import "@wiris/mathtype-ckeditor5/dist/index.css";
|
|
50
51
|
|
|
51
52
|
...
|
|
52
53
|
|
|
@@ -544,4 +544,19 @@
|
|
|
544
544
|
color:#000;
|
|
545
545
|
text-decoration:none;
|
|
546
546
|
cursor:pointer;
|
|
547
|
-
}
|
|
547
|
+
}
|
|
548
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker{
|
|
549
|
+
border:none;
|
|
550
|
+
}
|
|
551
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-insertion .Wirisformula{
|
|
552
|
+
border:3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
553
|
+
}
|
|
554
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-insertion.ck-suggestion-marker--active .Wirisformula{
|
|
555
|
+
border:3px solid var(--ck-color-suggestion-marker-insertion-border-active);
|
|
556
|
+
}
|
|
557
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-deletion .Wirisformula{
|
|
558
|
+
border:3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
559
|
+
}
|
|
560
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-deletion.ck-suggestion-marker--active .Wirisformula{
|
|
561
|
+
border:3px solid var(--ck-color-suggestion-marker-deletion-border-active);
|
|
562
|
+
}
|
package/dist/browser/index.css
CHANGED
|
@@ -577,4 +577,21 @@
|
|
|
577
577
|
cursor: pointer;
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
+
/* Replace the default suggestion marker border because it's doesn't span the entire widget. */
|
|
581
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker {
|
|
582
|
+
border: none;
|
|
583
|
+
}
|
|
584
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-insertion .Wirisformula {
|
|
585
|
+
border: 3px solid var(--ck-color-suggestion-marker-insertion-border);
|
|
586
|
+
}
|
|
587
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-insertion.ck-suggestion-marker--active .Wirisformula {
|
|
588
|
+
border: 3px solid var(--ck-color-suggestion-marker-insertion-border-active);
|
|
589
|
+
}
|
|
590
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-deletion .Wirisformula {
|
|
591
|
+
border: 3px solid var(--ck-color-suggestion-marker-deletion-border);
|
|
592
|
+
}
|
|
593
|
+
.ck-widget.ck-math-widget.ck-suggestion-marker.ck-suggestion-marker-deletion.ck-suggestion-marker--active .Wirisformula {
|
|
594
|
+
border: 3px solid var(--ck-color-suggestion-marker-deletion-border-active);
|
|
595
|
+
}
|
|
596
|
+
|
|
580
597
|
/*# sourceMappingURL=index.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../devkit/styles/styles.css"],"names":[],"mappings":"AAAA;EACE,eAAe;EACf,8BAA8B;EAC9B,MAAM;EACN,QAAQ;EACR,O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B,kBAAkB;EAClB,gBAAgB;EAChB,eAAe;EACf,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,YAAY;EACZ,oBAAoB;EACpB,kBAAkB;EAClB,eAAe;EACf,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;;EAEE,WAAW;EACX,qBAAqB;EACrB,eAAe;AACjB","file":"index.css","sourcesContent":[".wrs_modal_overlay {\n position: fixed;\n font-family: arial, sans-serif;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.8);\n z-index: 999998;\n opacity: 0.65;\n pointer-events: auto;\n}\n\n.wrs_modal_overlay.wrs_modal_ios {\n visibility: hidden;\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_android {\n visibility: hidden;\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_ios.moodle {\n position: fixed;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_stack {\n background: rgba(0, 0, 0, 0);\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_maximized {\n background: rgba(0, 0, 0, 0.8);\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_minimized {\n background: rgba(0, 0, 0, 0);\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_closed {\n background: rgba(0, 0, 0, 0);\n display: none;\n}\n\n.wrs_modal_title {\n color: #fff;\n padding: 5px 0 5px 10px;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n text-align: left;\n}\n\n.wrs_modal_close_button {\n float: right;\n cursor: pointer;\n color: #fff;\n padding: 5px 10px 5px 0;\n margin: 10px 7px 0 0;\n background-repeat: no-repeat;\n}\n\n.wrs_modal_minimize_button {\n float: right;\n cursor: pointer;\n color: #fff;\n padding: 5px 10px 5px 0;\n top: inherit;\n margin: 10px 7px 0 0;\n}\n\n.wrs_modal_stack_button {\n float: right;\n cursor: pointer;\n color: #fff;\n margin: 10px 7px 0 0;\n padding: 5px 10px 5px 0;\n top: inherit;\n}\n\n.wrs_modal_stack_button.wrs_stack {\n visibility: hidden;\n margin: 0;\n padding: 0;\n}\n\n.wrs_modal_stack_button.wrs_minimized {\n visibility: hidden;\n margin: 0;\n padding: 0;\n}\n\n.wrs_modal_maximize_button {\n float: right;\n cursor: pointer;\n color: #fff;\n margin: 10px 7px 0 0;\n padding: 5px 10px 5px 0;\n top: inherit;\n}\n\n.wrs_modal_maximize_button.wrs_maximized {\n visibility: hidden;\n margin: 0;\n padding: 0;\n}\n\n.wrs_modal_title_bar {\n display: block;\n background-color: #778e9a;\n}\n\n.wrs_modal_dialogContainer {\n border: none;\n background: #fafafa;\n z-index: 999999;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop {\n font-size: 14px;\n display: flex;\n flex-flow: column;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_maximized {\n position: fixed;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized {\n position: fixed;\n top: inherit;\n margin: 0;\n margin-right: 10px;\n}\n\n.wrs_modal_dialogContainer.wrs_closed {\n visibility: hidden;\n display: none;\n opacity: 0;\n}\n\n/* Class that exists but hasn't got css properties defined\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized.wrs_drag {} */\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_stack {\n position: fixed;\n bottom: 0;\n right: 0;\n box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_drag {\n box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_drag {\n box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_ios,\n.wrs_modal_dialogContainer.wrs_modal_android {\n margin: 0px;\n position: fixed;\n height: auto;\n overflow: hidden;\n top: calc(env(safe-area-inset-top));\n right: calc(env(safe-area-inset-right));\n left: calc(env(safe-area-inset-left));\n bottom: 0px;\n transform: none;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n}\n\n/* Class that exists but hasn't got css properties defined\n.wrs_content_container.wrs_maximized {} */\n\n.wrs_content_container.wrs_minimized {\n display: none;\n}\n\n/* .wrs_editor {\n flex-grow: 1;\n} */\n\n.wrs_content_container.wrs_modal_desktop > div:first-child {\n flex-grow: 1;\n}\n\n.wrs_modal_wrapper.wrs_modal_android,\n.wrs_modal_wrapper.wrs_modal_ios {\n margin: 0.5rem !important;\n flex-grow: 0.98;\n display: flex;\n}\n\n.wrs_content_container.wrs_modal_ios,\n.wrs_content_container.wrs_modal_android {\n flex-grow: 0.98;\n display: flex;\n}\n\n.wrs_content_container.wrs_modal_desktop {\n width: 100%;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n height: auto !important;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_badStock {\n width: 100%;\n height: 280px;\n margin: 0 auto;\n border-width: 0;\n}\n\n.wrs_modal_wrapper.wrs_modal_badStock {\n width: 100%;\n height: 280px;\n margin: 0 auto;\n border-width: 0;\n}\n\n.wrs_noselect {\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.wrs_bottom_right_resizer {\n width: 10px;\n height: 10px;\n color: #778e9a;\n position: absolute;\n right: 4px;\n bottom: 8px;\n cursor: se-resize;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.wrs_bottom_left_resizer {\n width: 15px;\n height: 15px;\n color: #778e9a;\n position: absolute;\n left: 0;\n top: 0;\n cursor: se-resize;\n}\n\n.wrs_modal_controls {\n height: 42px;\n line-height: normal;\n}\n\n.wrs_modal_links {\n margin: 10px auto;\n margin-bottom: 0;\n font-family: arial, sans-serif;\n padding: 6px;\n display: inline;\n float: right;\n text-align: right;\n}\n\n.wrs_modal_links > a {\n text-decoration: none;\n color: #778e9a;\n font-size: 16px;\n}\n\n.wrs_modal_button_cancel,\n.wrs_modal_button_cancel:hover,\n.wrs_modal_button_cancel:visited,\n.wrs_modal_button_cancel:active,\n.wrs_modal_button_cancel:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-left: 5px;\n margin-bottom: 0;\n cursor: pointer;\n font-family: arial, sans-serif;\n background-color: #ddd;\n height: 32px;\n}\n\n.wrs_modal_button_accept,\n.wrs_modal_button_accept:hover,\n.wrs_modal_button_accept:visited,\n.wrs_modal_button_accept:active,\n.wrs_modal_button_accept:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-right: 5px;\n margin-bottom: 0;\n color: #fff;\n background: #778e9a;\n cursor: pointer;\n font-family: arial, sans-serif;\n height: 32px;\n}\n\n.wrs_editor_vertical_bar {\n height: 20px;\n float: right;\n background: none;\n width: 20px;\n cursor: pointer;\n}\n\n.wrs_modal_buttons_container {\n display: inline;\n float: left;\n}\n\n.wrs_modal_buttons_container.wrs_modalDesktop {\n padding-left: 0;\n}\n\n.wrs_modal_buttons_container > button {\n line-height: normal;\n background-image: none;\n}\n\n.wrs_modal_wrapper {\n margin: 6px;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n}\n\n.wrs_modal_wrapper.wrs_modal_desktop.wrs_minimized {\n display: none;\n}\n\n.wrs_popupmessage_overlay_envolture {\n display: none;\n width: 100%;\n}\n\n.wrs_popupmessage_overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 4;\n cursor: pointer;\n}\n\n.wrs_popupmessage_panel {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n background: white;\n max-width: 500px;\n width: 75%;\n border-radius: 2px;\n padding: 20px;\n font-family: sans-serif;\n font-size: 15px;\n text-align: left;\n color: #2e2e2e;\n z-index: 5;\n max-height: 75%;\n overflow: auto;\n}\n\n.wrs_popupmessage_button_area {\n margin: 10px 0 0 0;\n}\n\n.wrs_panelContainer * {\n border: 0;\n}\n\n.wrs_button_cancel,\n.wrs_button_cancel:hover,\n.wrs_button_cancel:visited,\n.wrs_button_cancel:active,\n.wrs_button_cancel:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-left: 5px;\n margin-bottom: 0;\n cursor: pointer;\n font-family: arial, sans-serif;\n background-color: #ddd;\n background-image: none;\n height: 32px;\n}\n\n.wrs_button_accept,\n.wrs_button_accept:hover,\n.wrs_button_accept:visited,\n.wrs_button_accept:active,\n.wrs_button_accept:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-right: 5px;\n margin-bottom: 0;\n color: #fff;\n background: #778e9a;\n cursor: pointer;\n font-family: arial, sans-serif;\n height: 32px;\n}\n\n.wrs_editor button {\n box-shadow: none;\n}\n\n.wrs_editor .wrs_header button {\n border-bottom: none;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_stack.wrs_overlay_active {\n display: block;\n}\n\n/* Fix selection in drupal style */\n.wrs_toolbar tr:focus {\n background: none;\n}\n\n.wrs_toolbar tr:hover {\n background: none;\n}\n\n/* End of fix drupal */\n.wrs_modal_rtl .wrs_modal_button_cancel {\n margin-right: 5px;\n margin-left: 0;\n}\n\n.wrs_modal_rtl .wrs_modal_button_accept {\n margin-right: 0;\n margin-left: 5px;\n}\n\n.wrs_modal_rtl .wrs_button_cancel {\n margin-right: 5px;\n margin-left: 0;\n}\n\n.wrs_modal_rtl .wrs_button_accept {\n margin-right: 0;\n margin-left: 5px;\n}\n\n/* The Offline Modal (background) */\n.wrs_modal_offline {\n display: none;\n /* Hidden by default */\n position: fixed;\n /* Stay in place */\n z-index: 2;\n /* Sit on top */\n padding-top: 150px;\n /* Location of the box */\n left: 0;\n top: 0;\n width: 100%;\n /* Full width */\n height: 100%;\n /* Full height */\n overflow: auto;\n /* Enable scroll if needed */\n background-color: rgb(0, 0, 0);\n /* Fallback color */\n background-color: rgba(0, 0, 0, 0.4);\n /* Black w/ opacity */\n margin: auto;\n}\n\n/* Modal Content */\n.wrs_modal_content_offline {\n margin: auto;\n padding: 16px;\n background: #fff7ed;\n border-radius: 6px;\n width: 517px;\n height: 100px;\n position: relative;\n}\n\n/* The Close Button */\n.wrs_modal_offline_close {\n color: #c2410c;\n font-size: 24px;\n font-weight: bold;\n left: 95.7%;\n right: 2.08%;\n top: 7.6%;\n bottom: 75%;\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n position: absolute;\n}\n\n/* The Warn Icon */\n.wrs_modal_offline_warn {\n position: absolute;\n left: 2.08%;\n right: 94%;\n top: 11.6%;\n bottom: 75%;\n font-size: 24px;\n color: #fb923c;\n background-repeat: no-repeat;\n}\n\n.wrs_modal_offline_text_container {\n position: absolute;\n left: 6.8%;\n right: 6.08%;\n top: 10.4%;\n bottom: 2%;\n}\n\n.wrs_modal_offline_text {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #c2410c;\n}\n\n.wrs_modal_offline_text_warn {\n height: 25px;\n font-family: \"Inter\";\n font-style: normal;\n font-size: 14px;\n line-height: 20px;\n font-weight: bold;\n color: #c2410c;\n}\n\n.wrs_modal_offline_close:hover,\n.wrs_modal_offline_close:focus {\n color: #000;\n text-decoration: none;\n cursor: pointer;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../devkit/styles/styles.css","../../theme/styles.css"],"names":[],"mappings":"AAAA;EACE,eAAe;EACf,8BAA8B;EAC9B,MAAM;EACN,QAAQ;EACR,OAAO;EACP,SAAS;EACT,8BAA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EAChB,eAAe;EACf,iBAAiB;EACjB,cAAc;AAChB;;AAEA;EACE,YAAY;EACZ,oBAAoB;EACpB,kBAAkB;EAClB,eAAe;EACf,iBAAiB;EACjB,iBAAiB;EACjB,cAAc;AAChB;;AAEA;;EAEE,WAAW;EACX,qBAAqB;EACrB,eAAe;AACjB;;ACjkBA,8FAA8F;AAC9F;EACE,YAAY;AAyBd;AAtBI;MACE,oEAAoE;IACtE;AAGE;QACE,2EAA2E;MAC7E;AAKF;MACE,mEAAmE;IACrE;AAGE;QACE,0EAA0E;MAC5E","file":"index.css","sourcesContent":[".wrs_modal_overlay {\n position: fixed;\n font-family: arial, sans-serif;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.8);\n z-index: 999998;\n opacity: 0.65;\n pointer-events: auto;\n}\n\n.wrs_modal_overlay.wrs_modal_ios {\n visibility: hidden;\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_android {\n visibility: hidden;\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_ios.moodle {\n position: fixed;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_stack {\n background: rgba(0, 0, 0, 0);\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_maximized {\n background: rgba(0, 0, 0, 0.8);\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_minimized {\n background: rgba(0, 0, 0, 0);\n display: none;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_closed {\n background: rgba(0, 0, 0, 0);\n display: none;\n}\n\n.wrs_modal_title {\n color: #fff;\n padding: 5px 0 5px 10px;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n text-align: left;\n}\n\n.wrs_modal_close_button {\n float: right;\n cursor: pointer;\n color: #fff;\n padding: 5px 10px 5px 0;\n margin: 10px 7px 0 0;\n background-repeat: no-repeat;\n}\n\n.wrs_modal_minimize_button {\n float: right;\n cursor: pointer;\n color: #fff;\n padding: 5px 10px 5px 0;\n top: inherit;\n margin: 10px 7px 0 0;\n}\n\n.wrs_modal_stack_button {\n float: right;\n cursor: pointer;\n color: #fff;\n margin: 10px 7px 0 0;\n padding: 5px 10px 5px 0;\n top: inherit;\n}\n\n.wrs_modal_stack_button.wrs_stack {\n visibility: hidden;\n margin: 0;\n padding: 0;\n}\n\n.wrs_modal_stack_button.wrs_minimized {\n visibility: hidden;\n margin: 0;\n padding: 0;\n}\n\n.wrs_modal_maximize_button {\n float: right;\n cursor: pointer;\n color: #fff;\n margin: 10px 7px 0 0;\n padding: 5px 10px 5px 0;\n top: inherit;\n}\n\n.wrs_modal_maximize_button.wrs_maximized {\n visibility: hidden;\n margin: 0;\n padding: 0;\n}\n\n.wrs_modal_title_bar {\n display: block;\n background-color: #778e9a;\n}\n\n.wrs_modal_dialogContainer {\n border: none;\n background: #fafafa;\n z-index: 999999;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop {\n font-size: 14px;\n display: flex;\n flex-flow: column;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_maximized {\n position: fixed;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized {\n position: fixed;\n top: inherit;\n margin: 0;\n margin-right: 10px;\n}\n\n.wrs_modal_dialogContainer.wrs_closed {\n visibility: hidden;\n display: none;\n opacity: 0;\n}\n\n/* Class that exists but hasn't got css properties defined\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_minimized.wrs_drag {} */\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_stack {\n position: fixed;\n bottom: 0;\n right: 0;\n box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_drag {\n box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_desktop.wrs_drag {\n box-shadow: rgba(0, 0, 0, 0.5) 0 2px 8px;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_ios,\n.wrs_modal_dialogContainer.wrs_modal_android {\n margin: 0px;\n position: fixed;\n height: auto;\n overflow: hidden;\n top: calc(env(safe-area-inset-top));\n right: calc(env(safe-area-inset-right));\n left: calc(env(safe-area-inset-left));\n bottom: 0px;\n transform: none;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n}\n\n/* Class that exists but hasn't got css properties defined\n.wrs_content_container.wrs_maximized {} */\n\n.wrs_content_container.wrs_minimized {\n display: none;\n}\n\n/* .wrs_editor {\n flex-grow: 1;\n} */\n\n.wrs_content_container.wrs_modal_desktop > div:first-child {\n flex-grow: 1;\n}\n\n.wrs_modal_wrapper.wrs_modal_android,\n.wrs_modal_wrapper.wrs_modal_ios {\n margin: 0.5rem !important;\n flex-grow: 0.98;\n display: flex;\n}\n\n.wrs_content_container.wrs_modal_ios,\n.wrs_content_container.wrs_modal_android {\n flex-grow: 0.98;\n display: flex;\n}\n\n.wrs_content_container.wrs_modal_desktop {\n width: 100%;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n height: auto !important;\n}\n\n.wrs_modal_dialogContainer.wrs_modal_badStock {\n width: 100%;\n height: 280px;\n margin: 0 auto;\n border-width: 0;\n}\n\n.wrs_modal_wrapper.wrs_modal_badStock {\n width: 100%;\n height: 280px;\n margin: 0 auto;\n border-width: 0;\n}\n\n.wrs_noselect {\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.wrs_bottom_right_resizer {\n width: 10px;\n height: 10px;\n color: #778e9a;\n position: absolute;\n right: 4px;\n bottom: 8px;\n cursor: se-resize;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.wrs_bottom_left_resizer {\n width: 15px;\n height: 15px;\n color: #778e9a;\n position: absolute;\n left: 0;\n top: 0;\n cursor: se-resize;\n}\n\n.wrs_modal_controls {\n height: 42px;\n line-height: normal;\n}\n\n.wrs_modal_links {\n margin: 10px auto;\n margin-bottom: 0;\n font-family: arial, sans-serif;\n padding: 6px;\n display: inline;\n float: right;\n text-align: right;\n}\n\n.wrs_modal_links > a {\n text-decoration: none;\n color: #778e9a;\n font-size: 16px;\n}\n\n.wrs_modal_button_cancel,\n.wrs_modal_button_cancel:hover,\n.wrs_modal_button_cancel:visited,\n.wrs_modal_button_cancel:active,\n.wrs_modal_button_cancel:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-left: 5px;\n margin-bottom: 0;\n cursor: pointer;\n font-family: arial, sans-serif;\n background-color: #ddd;\n height: 32px;\n}\n\n.wrs_modal_button_accept,\n.wrs_modal_button_accept:hover,\n.wrs_modal_button_accept:visited,\n.wrs_modal_button_accept:active,\n.wrs_modal_button_accept:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-right: 5px;\n margin-bottom: 0;\n color: #fff;\n background: #778e9a;\n cursor: pointer;\n font-family: arial, sans-serif;\n height: 32px;\n}\n\n.wrs_editor_vertical_bar {\n height: 20px;\n float: right;\n background: none;\n width: 20px;\n cursor: pointer;\n}\n\n.wrs_modal_buttons_container {\n display: inline;\n float: left;\n}\n\n.wrs_modal_buttons_container.wrs_modalDesktop {\n padding-left: 0;\n}\n\n.wrs_modal_buttons_container > button {\n line-height: normal;\n background-image: none;\n}\n\n.wrs_modal_wrapper {\n margin: 6px;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n}\n\n.wrs_modal_wrapper.wrs_modal_desktop.wrs_minimized {\n display: none;\n}\n\n.wrs_popupmessage_overlay_envolture {\n display: none;\n width: 100%;\n}\n\n.wrs_popupmessage_overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 4;\n cursor: pointer;\n}\n\n.wrs_popupmessage_panel {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n background: white;\n max-width: 500px;\n width: 75%;\n border-radius: 2px;\n padding: 20px;\n font-family: sans-serif;\n font-size: 15px;\n text-align: left;\n color: #2e2e2e;\n z-index: 5;\n max-height: 75%;\n overflow: auto;\n}\n\n.wrs_popupmessage_button_area {\n margin: 10px 0 0 0;\n}\n\n.wrs_panelContainer * {\n border: 0;\n}\n\n.wrs_button_cancel,\n.wrs_button_cancel:hover,\n.wrs_button_cancel:visited,\n.wrs_button_cancel:active,\n.wrs_button_cancel:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-left: 5px;\n margin-bottom: 0;\n cursor: pointer;\n font-family: arial, sans-serif;\n background-color: #ddd;\n background-image: none;\n height: 32px;\n}\n\n.wrs_button_accept,\n.wrs_button_accept:hover,\n.wrs_button_accept:visited,\n.wrs_button_accept:active,\n.wrs_button_accept:focus {\n min-width: 80px;\n font-size: 14px;\n border-radius: 3px;\n border: 1px solid #778e9a;\n padding: 6px 8px;\n margin: 10px auto;\n margin-right: 5px;\n margin-bottom: 0;\n color: #fff;\n background: #778e9a;\n cursor: pointer;\n font-family: arial, sans-serif;\n height: 32px;\n}\n\n.wrs_editor button {\n box-shadow: none;\n}\n\n.wrs_editor .wrs_header button {\n border-bottom: none;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.wrs_modal_overlay.wrs_modal_desktop.wrs_stack.wrs_overlay_active {\n display: block;\n}\n\n/* Fix selection in drupal style */\n.wrs_toolbar tr:focus {\n background: none;\n}\n\n.wrs_toolbar tr:hover {\n background: none;\n}\n\n/* End of fix drupal */\n.wrs_modal_rtl .wrs_modal_button_cancel {\n margin-right: 5px;\n margin-left: 0;\n}\n\n.wrs_modal_rtl .wrs_modal_button_accept {\n margin-right: 0;\n margin-left: 5px;\n}\n\n.wrs_modal_rtl .wrs_button_cancel {\n margin-right: 5px;\n margin-left: 0;\n}\n\n.wrs_modal_rtl .wrs_button_accept {\n margin-right: 0;\n margin-left: 5px;\n}\n\n/* The Offline Modal (background) */\n.wrs_modal_offline {\n display: none;\n /* Hidden by default */\n position: fixed;\n /* Stay in place */\n z-index: 2;\n /* Sit on top */\n padding-top: 150px;\n /* Location of the box */\n left: 0;\n top: 0;\n width: 100%;\n /* Full width */\n height: 100%;\n /* Full height */\n overflow: auto;\n /* Enable scroll if needed */\n background-color: rgb(0, 0, 0);\n /* Fallback color */\n background-color: rgba(0, 0, 0, 0.4);\n /* Black w/ opacity */\n margin: auto;\n}\n\n/* Modal Content */\n.wrs_modal_content_offline {\n margin: auto;\n padding: 16px;\n background: #fff7ed;\n border-radius: 6px;\n width: 517px;\n height: 100px;\n position: relative;\n}\n\n/* The Close Button */\n.wrs_modal_offline_close {\n color: #c2410c;\n font-size: 24px;\n font-weight: bold;\n left: 95.7%;\n right: 2.08%;\n top: 7.6%;\n bottom: 75%;\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n position: absolute;\n}\n\n/* The Warn Icon */\n.wrs_modal_offline_warn {\n position: absolute;\n left: 2.08%;\n right: 94%;\n top: 11.6%;\n bottom: 75%;\n font-size: 24px;\n color: #fb923c;\n background-repeat: no-repeat;\n}\n\n.wrs_modal_offline_text_container {\n position: absolute;\n left: 6.8%;\n right: 6.08%;\n top: 10.4%;\n bottom: 2%;\n}\n\n.wrs_modal_offline_text {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n color: #c2410c;\n}\n\n.wrs_modal_offline_text_warn {\n height: 25px;\n font-family: \"Inter\";\n font-style: normal;\n font-size: 14px;\n line-height: 20px;\n font-weight: bold;\n color: #c2410c;\n}\n\n.wrs_modal_offline_close:hover,\n.wrs_modal_offline_close:focus {\n color: #000;\n text-decoration: none;\n cursor: pointer;\n}\n","/* Replace the default suggestion marker border because it's doesn't span the entire widget. */\n.ck-widget.ck-math-widget.ck-suggestion-marker {\n border: none;\n\n &.ck-suggestion-marker-insertion {\n & .Wirisformula {\n border: 3px solid var(--ck-color-suggestion-marker-insertion-border);\n }\n\n &.ck-suggestion-marker--active {\n & .Wirisformula {\n border: 3px solid var(--ck-color-suggestion-marker-insertion-border-active);\n }\n }\n }\n\n &.ck-suggestion-marker-deletion {\n & .Wirisformula {\n border: 3px solid var(--ck-color-suggestion-marker-deletion-border);\n }\n\n &.ck-suggestion-marker--active {\n & .Wirisformula {\n border: 3px solid var(--ck-color-suggestion-marker-deletion-border-active);\n }\n }\n }\n}\n"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { ButtonView } from 'ckeditor5';
|
|
|
3
3
|
import { ClickObserver, XmlDataProcessor, ViewUpcastWriter, HtmlDataProcessor } from 'ckeditor5';
|
|
4
4
|
import { Widget, viewToModelPositionOutsideModelElement, toWidget } from 'ckeditor5';
|
|
5
5
|
|
|
6
|
-
/*! @license DOMPurify 3.3.
|
|
6
|
+
/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
|
|
7
7
|
|
|
8
8
|
const {
|
|
9
9
|
entries,
|
|
@@ -301,7 +301,7 @@ const _createHooksMap = function _createHooksMap() {
|
|
|
301
301
|
function createDOMPurify() {
|
|
302
302
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
303
303
|
const DOMPurify = root => createDOMPurify(root);
|
|
304
|
-
DOMPurify.version = '3.3.
|
|
304
|
+
DOMPurify.version = '3.3.1';
|
|
305
305
|
DOMPurify.removed = [];
|
|
306
306
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
307
307
|
// Not running in a browser, provide a factory function
|
|
@@ -647,6 +647,12 @@ function createDOMPurify() {
|
|
|
647
647
|
}
|
|
648
648
|
addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
|
|
649
649
|
}
|
|
650
|
+
if (cfg.ADD_FORBID_CONTENTS) {
|
|
651
|
+
if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
|
|
652
|
+
FORBID_CONTENTS = clone(FORBID_CONTENTS);
|
|
653
|
+
}
|
|
654
|
+
addToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);
|
|
655
|
+
}
|
|
650
656
|
/* Add #text in case KEEP_CONTENT is set to true */
|
|
651
657
|
if (KEEP_CONTENT) {
|
|
652
658
|
ALLOWED_TAGS['#text'] = true;
|
|
@@ -4024,6 +4030,27 @@ var translations = {
|
|
|
4024
4030
|
if (mathML == null) {
|
|
4025
4031
|
mathML = imgObject.getAttribute("alt");
|
|
4026
4032
|
}
|
|
4033
|
+
// WARNING: This code is needed for CKEditor 5 Track Changes compatibility.
|
|
4034
|
+
// Preserve Track Changes attributes when converting image back to MathML.
|
|
4035
|
+
// This ensures change tracking information is maintained during the roundtrip conversion
|
|
4036
|
+
// (MathML → Image → MathML) in collaborative editing scenarios.
|
|
4037
|
+
const TRACK_CHANGES_ATTRIBUTE_PREFIXES = [
|
|
4038
|
+
"data-suggestion-",
|
|
4039
|
+
"data-comment-"
|
|
4040
|
+
];
|
|
4041
|
+
const preservedAttributes = {};
|
|
4042
|
+
// Extract Track Changes attributes from the image element
|
|
4043
|
+
for (const { name: attributeName, value: attributeValue } of imgObject.attributes){
|
|
4044
|
+
const isTrackChangesAttribute = TRACK_CHANGES_ATTRIBUTE_PREFIXES.some((prefix)=>attributeName.startsWith(prefix));
|
|
4045
|
+
if (isTrackChangesAttribute) {
|
|
4046
|
+
preservedAttributes[attributeName] = attributeValue;
|
|
4047
|
+
}
|
|
4048
|
+
}
|
|
4049
|
+
// If Track Changes attributes were found, inject them into the MathML opening tag
|
|
4050
|
+
if (Object.keys(preservedAttributes).length > 0) {
|
|
4051
|
+
const attributesString = Object.keys(preservedAttributes).map((name)=>` ${name}="${Util.htmlEntities(preservedAttributes[name])}"`).join("");
|
|
4052
|
+
mathML = mathML.replace(/(<math)/i, `$1${attributesString}`);
|
|
4053
|
+
}
|
|
4027
4054
|
if (convertToSafeXml) {
|
|
4028
4055
|
const safeMathML = MathML.safeXmlEncode(mathML);
|
|
4029
4056
|
return safeMathML;
|
|
@@ -4770,6 +4797,29 @@ var translations = {
|
|
|
4770
4797
|
mathmlSubstring = mathmlSubstring.substring(4, mathmlSubstring.length);
|
|
4771
4798
|
imgObject.setAttribute(Configuration.get("imageCustomEditorName"), mathmlSubstring);
|
|
4772
4799
|
}
|
|
4800
|
+
// WARNING: This code is needed for CKEditor 5 Track Changes compatibility.
|
|
4801
|
+
// Preserve Track Changes attributes (suggestions and comments) when converting MathML to image.
|
|
4802
|
+
// These attributes are needed to maintain change tracking information in collaborative editing scenarios.
|
|
4803
|
+
// They are extracted from the input MathML and transferred to the output image element.
|
|
4804
|
+
const TRACK_CHANGES_ATTRIBUTE_PREFIXES = [
|
|
4805
|
+
"data-suggestion-",
|
|
4806
|
+
"data-comment-"
|
|
4807
|
+
];
|
|
4808
|
+
const attributePattern = /([\w-]+)="([^"]*)"/g;
|
|
4809
|
+
let attributeMatch;
|
|
4810
|
+
// Parse only the opening <math> tag to extract attributes
|
|
4811
|
+
const mathOpeningTagEnd = mathml.indexOf(">");
|
|
4812
|
+
if (mathOpeningTagEnd !== -1) {
|
|
4813
|
+
const mathOpeningTag = mathml.substring(0, mathOpeningTagEnd);
|
|
4814
|
+
while((attributeMatch = attributePattern.exec(mathOpeningTag)) !== null){
|
|
4815
|
+
const [, attributeName, attributeValue] = attributeMatch;
|
|
4816
|
+
// Transfer Track Changes attributes from MathML to image
|
|
4817
|
+
const isTrackChangesAttribute = TRACK_CHANGES_ATTRIBUTE_PREFIXES.some((prefix)=>attributeName.startsWith(prefix));
|
|
4818
|
+
if (isTrackChangesAttribute) {
|
|
4819
|
+
imgObject.setAttribute(attributeName, Util.htmlEntitiesDecode(attributeValue));
|
|
4820
|
+
}
|
|
4821
|
+
}
|
|
4822
|
+
}
|
|
4773
4823
|
// Performance enabled.
|
|
4774
4824
|
if (Configuration.get("wirisPluginPerformance") && (Configuration.get("saveMode") === "xml" || Configuration.get("saveMode") === "safeXml")) {
|
|
4775
4825
|
let result = JSON.parse(Parser.createShowImageSrc(data, language));
|
|
@@ -9740,6 +9790,8 @@ var warnIcon = "<svg width=\"16\" height=\"14\" viewBox=\"0 0 16 14\" fill=\"non
|
|
|
9740
9790
|
* Opens formula editor to editing an existing formula. Can be overwritten in order to make some
|
|
9741
9791
|
* actions from integration part before the formula is edited.
|
|
9742
9792
|
*/ openExistingFormulaEditor() {
|
|
9793
|
+
// Recover owner integration instance.
|
|
9794
|
+
WirisPlugin.currentInstance = this;
|
|
9743
9795
|
if (window.navigator.onLine) {
|
|
9744
9796
|
this.core.editionProperties.isNewElement = false;
|
|
9745
9797
|
this.core.openModalDialog(this.target, this.isIframe);
|
|
@@ -11261,7 +11313,9 @@ delete Array.prototype.__class__; // @codingStandardsIgnoreEnd
|
|
|
11261
11313
|
// Remove selection
|
|
11262
11314
|
if (!viewSelection.isCollapsed) {
|
|
11263
11315
|
for (const range of viewSelection.getRanges()){
|
|
11264
|
-
|
|
11316
|
+
const modelRange = this.editorObject.editing.mapper.toModelRange(range);
|
|
11317
|
+
const modelSelection = this.editorObject.model.createSelection(modelRange);
|
|
11318
|
+
this.editorObject.model.deleteContent(modelSelection);
|
|
11265
11319
|
}
|
|
11266
11320
|
}
|
|
11267
11321
|
// Set carret after the formula
|
|
@@ -11277,7 +11331,7 @@ delete Array.prototype.__class__; // @codingStandardsIgnoreEnd
|
|
|
11277
11331
|
if (mathml) {
|
|
11278
11332
|
this.editorObject.model.insertObject(modelElementNew, position);
|
|
11279
11333
|
}
|
|
11280
|
-
|
|
11334
|
+
this.editorObject.model.deleteContent(this.editorObject.model.createSelection(modelElementOld, 'on'));
|
|
11281
11335
|
}
|
|
11282
11336
|
// eslint-disable-next-line consistent-return
|
|
11283
11337
|
return modelElementNew;
|
|
@@ -11321,6 +11375,14 @@ delete Array.prototype.__class__; // @codingStandardsIgnoreEnd
|
|
|
11321
11375
|
returnObject.node = windowTarget.document.createTextNode(`$$${returnObject.latex}$$`);
|
|
11322
11376
|
this.editorObject.model.change((writer)=>{
|
|
11323
11377
|
const { latexRange } = this.core.editionProperties;
|
|
11378
|
+
// Add null check for latexRange.
|
|
11379
|
+
// When the editor is initialized in a textarea element, latexRange may not be set on initial load.
|
|
11380
|
+
// This check ensures formulas can still be inserted by falling back to MathML insertion if latexRange is not available.
|
|
11381
|
+
if (!latexRange) {
|
|
11382
|
+
// Fallback to regular MathML insertion if latexRange is not available
|
|
11383
|
+
this.insertMathml(mathml);
|
|
11384
|
+
return;
|
|
11385
|
+
}
|
|
11324
11386
|
const startNode = this.findText(latexRange.startContainer);
|
|
11325
11387
|
const endNode = this.findText(latexRange.endContainer);
|
|
11326
11388
|
let startPosition = writer.createPositionAt(startNode.parent, startNode.startOffset + latexRange.startOffset);
|
|
@@ -11348,7 +11410,8 @@ delete Array.prototype.__class__; // @codingStandardsIgnoreEnd
|
|
|
11348
11410
|
range = writer.createRange(startPosition, endPosition);
|
|
11349
11411
|
}
|
|
11350
11412
|
}
|
|
11351
|
-
|
|
11413
|
+
const modelSelection = this.editorObject.model.createSelection(range);
|
|
11414
|
+
this.editorObject.model.deleteContent(modelSelection);
|
|
11352
11415
|
writer.insertText(`$$${returnObject.latex}$$`, startNode.getAttributes(), startPosition);
|
|
11353
11416
|
});
|
|
11354
11417
|
} else {
|
|
@@ -11469,7 +11532,7 @@ var mathIcon = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Generator: Adob
|
|
|
11469
11532
|
|
|
11470
11533
|
var chemIcon = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->\n<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 40.3 49.5\" style=\"enable-background:new 0 0 40.3 49.5;\" xml:space=\"preserve\">\n<style type=\"text/css\">\n\t.st0{fill:#A4CF61;}\n</style>\n<path class=\"st0\" d=\"M39.2,12.1c0-1.9-1.1-3.6-2.7-4.4L24.5,0.9l0,0c-0.7-0.4-1.5-0.6-2.4-0.6c-0.9,0-1.7,0.2-2.4,0.6l0,0L2.3,10.8\n\tl0,0C0.9,11.7,0,13.2,0,14.9h0v19.6h0c0,1.7,0.9,3.3,2.3,4.1l0,0l17.4,9.9l0,0c0.7,0.4,1.5,0.6,2.4,0.6c0.9,0,1.7-0.2,2.4-0.6l0,0\n\tl12.2-6.9h0c1.5-0.8,2.6-2.5,2.6-4.3c0-2.7-2.2-4.9-4.9-4.9c-0.9,0-1.8,0.3-2.5,0.7l0,0l-9.7,5.6l-12.3-7V17.8l12.3-7l9.9,5.7l0,0\n\tc0.7,0.4,1.5,0.6,2.4,0.6C37,17,39.2,14.8,39.2,12.1\"/>\n</svg>\n";
|
|
11471
11534
|
|
|
11472
|
-
var version = "8.
|
|
11535
|
+
var version = "8.15.1";
|
|
11473
11536
|
var packageInfo = {
|
|
11474
11537
|
version: version};
|
|
11475
11538
|
|
|
@@ -11489,7 +11552,9 @@ class MathType extends Plugin {
|
|
|
11489
11552
|
const integration = this._addIntegration();
|
|
11490
11553
|
currentInstance = integration;
|
|
11491
11554
|
// Add the MathType and ChemType commands to the editor
|
|
11492
|
-
this._addCommands();
|
|
11555
|
+
this._addCommands(integration);
|
|
11556
|
+
// Add the track changes feature integration
|
|
11557
|
+
this._addTrackChangesIntegration(integration);
|
|
11493
11558
|
// Add the buttons for MathType and ChemType
|
|
11494
11559
|
this._addViews(integration);
|
|
11495
11560
|
// Registers the <mathml> element in the schema
|
|
@@ -11809,7 +11874,8 @@ class MathType extends Plugin {
|
|
|
11809
11874
|
imgElement = htmlDataProcessor.toView(htmlContent).getChild(0);
|
|
11810
11875
|
} else if (formula) {
|
|
11811
11876
|
const mathString = formula.replaceAll('ref="<"', 'ref="<"');
|
|
11812
|
-
const
|
|
11877
|
+
const lang = integration?.getLanguage() || "en"; // Safe fallback to 'en' in case integration is undefined.
|
|
11878
|
+
const imgHtml = Parser.initParse(mathString, lang);
|
|
11813
11879
|
imgElement = htmlDataProcessor.toView(imgHtml).getChild(0);
|
|
11814
11880
|
// Add HTML element (<img>) to model
|
|
11815
11881
|
viewWriter.setAttribute("htmlContent", imgHtml, modelItem);
|
|
@@ -11867,13 +11933,63 @@ class MathType extends Plugin {
|
|
|
11867
11933
|
editor.editing.mapper.on("viewToModelPosition", viewToModelPositionOutsideModelElement(editor.model, (viewElement)=>viewElement.hasClass("ck-math-widget")));
|
|
11868
11934
|
// Keep a reference to the original get and set function.
|
|
11869
11935
|
const { get, set } = editor.data;
|
|
11936
|
+
// Listen to the preview command execution to set a flag in localStorage.
|
|
11937
|
+
// This flag will be used in the getData() to prevent converting formulas while generating the preview.
|
|
11938
|
+
// This is necessary because the preview command uses editor.getData() multiple times internally.
|
|
11939
|
+
const previewCommand = editor.commands.get("previewFinalContent");
|
|
11940
|
+
if (previewCommand) {
|
|
11941
|
+
this.listenTo(previewCommand, "execute", ()=>{
|
|
11942
|
+
localStorage.setItem("isGeneratingPreview", true);
|
|
11943
|
+
setTimeout(()=>{
|
|
11944
|
+
localStorage.setItem("isGeneratingPreview", false);
|
|
11945
|
+
}, 1000);
|
|
11946
|
+
}, {
|
|
11947
|
+
priority: "high"
|
|
11948
|
+
});
|
|
11949
|
+
}
|
|
11870
11950
|
/**
|
|
11871
|
-
*
|
|
11951
|
+
* Listener for getData() that handles Track Changes and semantics cleanup.
|
|
11952
|
+
*
|
|
11953
|
+
* This listener intercepts the getData() call and processes the output differently
|
|
11954
|
+
* depending on whether we're generating a preview or performing a save operation:
|
|
11955
|
+
*
|
|
11956
|
+
* - Preview Mode: Removes deleted formulas (marked with Track Changes deletion attributes)
|
|
11957
|
+
* while preserving formula images for visual representation.
|
|
11958
|
+
* - Save Mode: Converts formulas to clean MathML by removing semantic annotations
|
|
11959
|
+
* and handwritten data, ensuring clean storage format.
|
|
11872
11960
|
*/ editor.data.on("get", (e)=>{
|
|
11873
11961
|
const output = e.return;
|
|
11962
|
+
// Check if we're in preview mode (flag set by previewFinalContent command)
|
|
11963
|
+
const isGeneratingPreview = localStorage.getItem("isGeneratingPreview");
|
|
11964
|
+
if (isGeneratingPreview === "true") {
|
|
11965
|
+
// Wrap a <span> around all img elements to preserve Track Changes visibility for formulas.
|
|
11966
|
+
// Span must contain all the img attributes to avoid render issues.
|
|
11967
|
+
const attributesToPreserve = [
|
|
11968
|
+
"data-suggestion-",
|
|
11969
|
+
"data-comment-"
|
|
11970
|
+
];
|
|
11971
|
+
const previewOutput = output.replace(/<img([^>]*class="Wirisformula"[^>]*)>/g, (match, attributes)=>{
|
|
11972
|
+
// Extract Track Changes attributes
|
|
11973
|
+
const trackChangesAttrs = [];
|
|
11974
|
+
attributesToPreserve.forEach((prefix)=>{
|
|
11975
|
+
const regex = new RegExp(`(${prefix}[^=]*="[^"]*")`, "g");
|
|
11976
|
+
let attrMatch;
|
|
11977
|
+
while((attrMatch = regex.exec(attributes)) !== null){
|
|
11978
|
+
trackChangesAttrs.push(attrMatch[1]);
|
|
11979
|
+
}
|
|
11980
|
+
});
|
|
11981
|
+
const spanAttrs = trackChangesAttrs.length > 0 ? ` ${trackChangesAttrs.join(" ")}` : "";
|
|
11982
|
+
return `<span${spanAttrs}>${match}</span>`;
|
|
11983
|
+
});
|
|
11984
|
+
// Cleans all the semantics tag for safexml
|
|
11985
|
+
// including the handwritten data points
|
|
11986
|
+
e.return = MathML.removeSafeXMLSemantics(previewOutput);
|
|
11987
|
+
return;
|
|
11988
|
+
}
|
|
11989
|
+
// In save mode, convert formula images back to clean MathML
|
|
11874
11990
|
const parsedResult = Parser.endParse(output);
|
|
11875
|
-
//
|
|
11876
|
-
//
|
|
11991
|
+
// Remove all semantic annotations (including handwritten data points)
|
|
11992
|
+
// to ensure clean, standard MathML format for storage
|
|
11877
11993
|
e.return = MathML.removeSafeXMLSemantics(parsedResult);
|
|
11878
11994
|
}, {
|
|
11879
11995
|
priority: "low"
|
|
@@ -11929,6 +12045,18 @@ class MathType extends Plugin {
|
|
|
11929
12045
|
Latex
|
|
11930
12046
|
};
|
|
11931
12047
|
}
|
|
12048
|
+
_addTrackChangesIntegration(integration) {
|
|
12049
|
+
const { editor } = this;
|
|
12050
|
+
if (editor.plugins.has("TrackChangesEditing")) {
|
|
12051
|
+
const trackChangesEditing = editor.plugins.get("TrackChangesEditing");
|
|
12052
|
+
// Makes MathType and ChemType buttons available when editor is in the track changes mode
|
|
12053
|
+
trackChangesEditing.enableCommand("MathType");
|
|
12054
|
+
trackChangesEditing.enableCommand("ChemType");
|
|
12055
|
+
// Adds custom label replacing the default 'mathml'.
|
|
12056
|
+
// Handles both singular and plural forms.
|
|
12057
|
+
trackChangesEditing.descriptionFactory.registerElementLabel("mathml", (quantity)=>(quantity > 1 ? `${quantity} ` : "") + StringManager.get(quantity > 1 ? "formulas" : "formula", integration?.getLanguage() || "en"));
|
|
12058
|
+
}
|
|
12059
|
+
}
|
|
11932
12060
|
}
|
|
11933
12061
|
|
|
11934
12062
|
export { CKEditor5Integration, ChemTypeCommand, MathTypeCommand, MathType as default };
|