@mdaemon/html-editor 1.0.7 → 1.0.8
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 +19 -2
- package/dist/index.d.ts +44 -0
- package/dist/index.js +557 -44
- package/dist/index.mjs +557 -44
- package/dist/styles.css +170 -0
- package/package.json +12 -3
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/styles.css
CHANGED
|
@@ -799,6 +799,80 @@
|
|
|
799
799
|
margin-top: 16px;
|
|
800
800
|
}
|
|
801
801
|
|
|
802
|
+
.md-source-editor-dialog {
|
|
803
|
+
width: 700px;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.md-source-editor-textarea {
|
|
807
|
+
width: 100%;
|
|
808
|
+
height: 400px;
|
|
809
|
+
padding: 10px;
|
|
810
|
+
border: 1px solid #ccc;
|
|
811
|
+
border-radius: 3px;
|
|
812
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
813
|
+
font-size: 13px;
|
|
814
|
+
line-height: 1.5;
|
|
815
|
+
resize: vertical;
|
|
816
|
+
white-space: pre-wrap;
|
|
817
|
+
tab-size: 2;
|
|
818
|
+
box-sizing: border-box;
|
|
819
|
+
color: #222;
|
|
820
|
+
background: #fff;
|
|
821
|
+
}
|
|
822
|
+
.md-source-editor-textarea:focus {
|
|
823
|
+
outline: none;
|
|
824
|
+
border-color: #207ab7;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
.md-source-editor-footer {
|
|
828
|
+
display: flex;
|
|
829
|
+
justify-content: flex-end;
|
|
830
|
+
gap: 8px;
|
|
831
|
+
margin-top: 16px;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.md-link-editor-dialog {
|
|
835
|
+
width: 480px;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
.md-link-editor-row {
|
|
839
|
+
margin-bottom: 12px;
|
|
840
|
+
}
|
|
841
|
+
.md-link-editor-row label {
|
|
842
|
+
display: block;
|
|
843
|
+
font-size: 13px;
|
|
844
|
+
margin-bottom: 4px;
|
|
845
|
+
color: #555;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.md-link-editor-input,
|
|
849
|
+
.md-link-editor-select {
|
|
850
|
+
width: 100%;
|
|
851
|
+
padding: 8px 10px;
|
|
852
|
+
border: 1px solid #ccc;
|
|
853
|
+
border-radius: 3px;
|
|
854
|
+
font-size: 13px;
|
|
855
|
+
box-sizing: border-box;
|
|
856
|
+
color: #222;
|
|
857
|
+
background: #fff;
|
|
858
|
+
}
|
|
859
|
+
.md-link-editor-input:focus,
|
|
860
|
+
.md-link-editor-select:focus {
|
|
861
|
+
outline: none;
|
|
862
|
+
border-color: #207ab7;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.md-link-editor-select {
|
|
866
|
+
appearance: auto;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.md-link-editor-footer {
|
|
870
|
+
display: flex;
|
|
871
|
+
justify-content: flex-end;
|
|
872
|
+
gap: 8px;
|
|
873
|
+
margin-top: 16px;
|
|
874
|
+
}
|
|
875
|
+
|
|
802
876
|
.md-editor-dragover .md-editor-content {
|
|
803
877
|
box-shadow: 0 0 10px 1px rgba(32, 122, 183, 0.5) inset;
|
|
804
878
|
}
|
|
@@ -893,6 +967,59 @@
|
|
|
893
967
|
.md-editor-oxide-dark .md-image-upload-progress-bar {
|
|
894
968
|
background: #364049;
|
|
895
969
|
}
|
|
970
|
+
.md-editor-oxide-dark .md-dialog {
|
|
971
|
+
background: #222f3e;
|
|
972
|
+
border-color: #364049;
|
|
973
|
+
color: #fff;
|
|
974
|
+
}
|
|
975
|
+
.md-editor-oxide-dark .md-dialog-header {
|
|
976
|
+
background: #1a252f;
|
|
977
|
+
border-color: #364049;
|
|
978
|
+
color: #fff;
|
|
979
|
+
}
|
|
980
|
+
.md-editor-oxide-dark .md-dialog-close {
|
|
981
|
+
color: #fff;
|
|
982
|
+
}
|
|
983
|
+
.md-editor-oxide-dark .md-dialog-close:hover {
|
|
984
|
+
background: #2d3e50;
|
|
985
|
+
}
|
|
986
|
+
.md-editor-oxide-dark .md-btn {
|
|
987
|
+
background: #1a252f;
|
|
988
|
+
border-color: #364049;
|
|
989
|
+
color: #fff;
|
|
990
|
+
}
|
|
991
|
+
.md-editor-oxide-dark .md-btn:hover {
|
|
992
|
+
background: #2d3e50;
|
|
993
|
+
}
|
|
994
|
+
.md-editor-oxide-dark .md-btn.md-btn-primary {
|
|
995
|
+
background: #207ab7;
|
|
996
|
+
border-color: #207ab7;
|
|
997
|
+
color: #fff;
|
|
998
|
+
}
|
|
999
|
+
.md-editor-oxide-dark .md-btn.md-btn-primary:hover {
|
|
1000
|
+
background: #1a6399;
|
|
1001
|
+
}
|
|
1002
|
+
.md-editor-oxide-dark .md-source-editor-textarea {
|
|
1003
|
+
background: #1a252f;
|
|
1004
|
+
border-color: #364049;
|
|
1005
|
+
color: #fff;
|
|
1006
|
+
}
|
|
1007
|
+
.md-editor-oxide-dark .md-source-editor-textarea:focus {
|
|
1008
|
+
border-color: #207ab7;
|
|
1009
|
+
}
|
|
1010
|
+
.md-editor-oxide-dark .md-link-editor-input,
|
|
1011
|
+
.md-editor-oxide-dark .md-link-editor-select {
|
|
1012
|
+
background: #1a252f;
|
|
1013
|
+
border-color: #364049;
|
|
1014
|
+
color: #fff;
|
|
1015
|
+
}
|
|
1016
|
+
.md-editor-oxide-dark .md-link-editor-input:focus,
|
|
1017
|
+
.md-editor-oxide-dark .md-link-editor-select:focus {
|
|
1018
|
+
border-color: #207ab7;
|
|
1019
|
+
}
|
|
1020
|
+
.md-editor-oxide-dark .md-link-editor-row label {
|
|
1021
|
+
color: #aaa;
|
|
1022
|
+
}
|
|
896
1023
|
|
|
897
1024
|
.md-editor-confab {
|
|
898
1025
|
background: #fff;
|
|
@@ -1038,6 +1165,24 @@
|
|
|
1038
1165
|
border-radius: 6px;
|
|
1039
1166
|
background: var(--color-confab-gray-50, #f9fafb);
|
|
1040
1167
|
}
|
|
1168
|
+
.md-editor-confab .md-source-editor-textarea {
|
|
1169
|
+
border-color: var(--color-confab-gray-300, #d1d5db);
|
|
1170
|
+
border-radius: 6px;
|
|
1171
|
+
}
|
|
1172
|
+
.md-editor-confab .md-source-editor-textarea:focus {
|
|
1173
|
+
border-color: var(--theme-primary, #0066cc);
|
|
1174
|
+
box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
|
|
1175
|
+
}
|
|
1176
|
+
.md-editor-confab .md-link-editor-input,
|
|
1177
|
+
.md-editor-confab .md-link-editor-select {
|
|
1178
|
+
border-color: var(--color-confab-gray-300, #d1d5db);
|
|
1179
|
+
border-radius: 6px;
|
|
1180
|
+
}
|
|
1181
|
+
.md-editor-confab .md-link-editor-input:focus,
|
|
1182
|
+
.md-editor-confab .md-link-editor-select:focus {
|
|
1183
|
+
border-color: var(--theme-primary, #0066cc);
|
|
1184
|
+
box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15);
|
|
1185
|
+
}
|
|
1041
1186
|
|
|
1042
1187
|
.md-editor-confab-dark {
|
|
1043
1188
|
background: var(--color-dark-bg-primary, #1a1a2e);
|
|
@@ -1217,4 +1362,29 @@
|
|
|
1217
1362
|
.md-editor-confab-dark .md-charmap-preview {
|
|
1218
1363
|
background: var(--color-dark-bg-tertiary, #2a2a2a);
|
|
1219
1364
|
color: var(--color-dark-text-primary, #fff);
|
|
1365
|
+
}
|
|
1366
|
+
.md-editor-confab-dark .md-source-editor-textarea {
|
|
1367
|
+
background: var(--color-dark-bg-tertiary, #2a2a2a);
|
|
1368
|
+
border-color: var(--color-dark-border, #333);
|
|
1369
|
+
color: var(--color-dark-text-primary, #fff);
|
|
1370
|
+
border-radius: 6px;
|
|
1371
|
+
}
|
|
1372
|
+
.md-editor-confab-dark .md-source-editor-textarea:focus {
|
|
1373
|
+
border-color: var(--theme-primary, #0066cc);
|
|
1374
|
+
box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
|
|
1375
|
+
}
|
|
1376
|
+
.md-editor-confab-dark .md-link-editor-input,
|
|
1377
|
+
.md-editor-confab-dark .md-link-editor-select {
|
|
1378
|
+
background: var(--color-dark-bg-tertiary, #2a2a2a);
|
|
1379
|
+
border-color: var(--color-dark-border, #333);
|
|
1380
|
+
color: var(--color-dark-text-primary, #fff);
|
|
1381
|
+
border-radius: 6px;
|
|
1382
|
+
}
|
|
1383
|
+
.md-editor-confab-dark .md-link-editor-input:focus,
|
|
1384
|
+
.md-editor-confab-dark .md-link-editor-select:focus {
|
|
1385
|
+
border-color: var(--theme-primary, #0066cc);
|
|
1386
|
+
box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
|
|
1387
|
+
}
|
|
1388
|
+
.md-editor-confab-dark .md-link-editor-row label {
|
|
1389
|
+
color: var(--color-dark-text-muted, #888);
|
|
1220
1390
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdaemon/html-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A TinyMCE-compatible HTML editor built on TipTap",
|
|
5
|
+
"homepage": "https://github.com/mdaemon-technologies/MDHTMLEditor",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/mdaemon-technologies/MDHTMLEditor.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/mdaemon-technologies/MDHTMLEditor/issues"
|
|
12
|
+
},
|
|
5
13
|
"main": "dist/index.js",
|
|
6
14
|
"module": "dist/index.mjs",
|
|
7
15
|
"types": "dist/index.d.ts",
|
|
@@ -29,8 +37,9 @@
|
|
|
29
37
|
"dist"
|
|
30
38
|
],
|
|
31
39
|
"scripts": {
|
|
32
|
-
"build": "vite build",
|
|
33
|
-
"dev": "vite build --
|
|
40
|
+
"build": "vite build --mode production",
|
|
41
|
+
"build:dev": "vite build --mode development",
|
|
42
|
+
"dev": "vite build --watch --mode development",
|
|
34
43
|
"test": "jest",
|
|
35
44
|
"test:coverage": "jest --coverage",
|
|
36
45
|
"lint": "eslint src --ext .ts",
|