ckeditor-math-chem-editor 1.0.0 → 1.0.3
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/package.json +2 -2
- package/src/Ckeditor.jsx +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ckeditor-math-chem-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "CKEditor React component with built-in math and chemistry editor popup using MathLive.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"react": "^19.2.6",
|
|
44
44
|
"react-dom": "^19.2.6"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|
package/src/Ckeditor.jsx
CHANGED
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
import 'ckeditor5/ckeditor5.css';
|
|
25
25
|
import 'mathlive';
|
|
26
26
|
import './CustomMathEditor.css';
|
|
27
|
-
import SpecialCharacterModal from './SpecialCharacterModal
|
|
27
|
+
import SpecialCharacterModal from './SpecialCharacterModal';
|
|
28
28
|
|
|
29
|
-
// Global map + handler ref for widget click
|
|
29
|
+
// Global map + handler ref for widget click → edit popup
|
|
30
30
|
window.__ckMathWidgets = window.__ckMathWidgets || new Map();
|
|
31
31
|
window.__ckMathWidgetClickHandler = null;
|
|
32
32
|
|
|
@@ -1798,7 +1798,7 @@ class MathInlinePlugin extends Plugin {
|
|
|
1798
1798
|
mf.style.direction = dir;
|
|
1799
1799
|
mf.style.textAlign = dir === 'rtl' ? 'right' : 'left';
|
|
1800
1800
|
mf.style.unicodeBidi = dir === 'rtl' ? 'plaintext' : 'normal';
|
|
1801
|
-
mf.style.color = '#
|
|
1801
|
+
mf.style.color = '#000000';
|
|
1802
1802
|
|
|
1803
1803
|
const setLatex = () => {
|
|
1804
1804
|
if (mf.setValue) mf.setValue(latex, { silenceNotifications: true });
|
|
@@ -6310,7 +6310,7 @@ function CkEditor({ value, onChange, className = '' }) {
|
|
|
6310
6310
|
width: auto !important;
|
|
6311
6311
|
max-width: 100% !important;
|
|
6312
6312
|
pointer-events: none !important;
|
|
6313
|
-
color: #
|
|
6313
|
+
color: #000000 !important;
|
|
6314
6314
|
}
|
|
6315
6315
|
.ck-math-widget[data-dir="rtl"] {
|
|
6316
6316
|
direction: rtl !important;
|
|
@@ -6390,4 +6390,3 @@ function CkEditor({ value, onChange, className = '' }) {
|
|
|
6390
6390
|
|
|
6391
6391
|
export default CkEditor;
|
|
6392
6392
|
|
|
6393
|
-
|