@uiw/react-md-editor 3.17.0 → 3.17.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/dist/mdeditor.css +15 -5
- package/dist/mdeditor.js +69 -652
- package/dist/mdeditor.min.css +1 -1
- package/dist/mdeditor.min.js +1 -1
- package/esm/Editor.d.ts +3 -0
- package/esm/Editor.js +1 -7
- package/esm/Editor.js.map +2 -3
- package/esm/components/DragBar/index.css +1 -0
- package/esm/components/DragBar/index.less +1 -0
- package/esm/components/Toolbar/Child.js +0 -1
- package/esm/components/Toolbar/Child.js.map +2 -2
- package/esm/components/Toolbar/index.css +2 -1
- package/esm/components/Toolbar/index.d.ts +0 -2
- package/esm/components/Toolbar/index.js +0 -4
- package/esm/components/Toolbar/index.js.map +2 -3
- package/esm/components/Toolbar/index.less +2 -1
- package/esm/index.css +10 -3
- package/esm/index.less +9 -3
- package/lib/Editor.d.ts +3 -0
- package/lib/Editor.js +1 -8
- package/lib/Editor.js.map +2 -3
- package/lib/components/DragBar/index.less +1 -0
- package/lib/components/Toolbar/Child.js +0 -1
- package/lib/components/Toolbar/Child.js.map +2 -2
- package/lib/components/Toolbar/index.d.ts +0 -2
- package/lib/components/Toolbar/index.js +0 -5
- package/lib/components/Toolbar/index.js.map +2 -3
- package/lib/components/Toolbar/index.less +2 -1
- package/lib/index.less +9 -3
- package/markdown-editor.css +13 -4
- package/package.json +2 -2
- package/src/Editor.tsx +6 -9
- package/src/components/DragBar/index.less +1 -0
- package/src/components/Toolbar/Child.tsx +1 -1
- package/src/components/Toolbar/index.less +2 -1
- package/src/components/Toolbar/index.tsx +2 -3
- package/src/index.less +9 -3
package/dist/mdeditor.css
CHANGED
|
@@ -278,12 +278,12 @@ body[data-color-mode*='light'] {
|
|
|
278
278
|
box-sizing: content-box;
|
|
279
279
|
overflow: hidden;
|
|
280
280
|
background: transparent;
|
|
281
|
+
border: 0;
|
|
281
282
|
border-bottom: 1px solid var(--color-border-muted);
|
|
282
283
|
height: 0.25em;
|
|
283
284
|
padding: 0;
|
|
284
285
|
margin: 24px 0;
|
|
285
286
|
background-color: var(--color-border-default);
|
|
286
|
-
border: 0;
|
|
287
287
|
}
|
|
288
288
|
.wmde-markdown input {
|
|
289
289
|
font: inherit;
|
|
@@ -1166,7 +1166,7 @@ body[data-color-mode*='light'] {
|
|
|
1166
1166
|
.w-md-editor-toolbar {
|
|
1167
1167
|
border-bottom: 1px solid var(--color-border-default);
|
|
1168
1168
|
background-color: var(--color-canvas-default);
|
|
1169
|
-
padding:
|
|
1169
|
+
padding: 5px;
|
|
1170
1170
|
display: flex;
|
|
1171
1171
|
justify-content: space-between;
|
|
1172
1172
|
align-items: center;
|
|
@@ -1174,6 +1174,7 @@ body[data-color-mode*='light'] {
|
|
|
1174
1174
|
-webkit-user-select: none;
|
|
1175
1175
|
-moz-user-select: none;
|
|
1176
1176
|
user-select: none;
|
|
1177
|
+
flex-wrap: wrap;
|
|
1177
1178
|
}
|
|
1178
1179
|
.w-md-editor-toolbar.bottom {
|
|
1179
1180
|
border-bottom: 0px;
|
|
@@ -1240,6 +1241,7 @@ body[data-color-mode*='light'] {
|
|
|
1240
1241
|
position: absolute;
|
|
1241
1242
|
cursor: s-resize;
|
|
1242
1243
|
right: 0;
|
|
1244
|
+
bottom: 0;
|
|
1243
1245
|
margin-top: -11px;
|
|
1244
1246
|
margin-right: 0;
|
|
1245
1247
|
width: 14px;
|
|
@@ -1264,14 +1266,22 @@ body[data-color-mode*='light'] {
|
|
|
1264
1266
|
box-shadow: 0 0 0 1px var(--color-border-default), 0 0 0 var(--color-border-default), 0 1px 1px var(--color-border-default);
|
|
1265
1267
|
background-color: var(--color-canvas-default);
|
|
1266
1268
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1269
|
+
display: flex;
|
|
1270
|
+
flex-direction: column;
|
|
1267
1271
|
}
|
|
1268
|
-
.w-md-editor
|
|
1269
|
-
|
|
1272
|
+
.w-md-editor-toolbar {
|
|
1273
|
+
height: -webkit-fit-content;
|
|
1274
|
+
height: -moz-fit-content;
|
|
1275
|
+
height: fit-content;
|
|
1270
1276
|
}
|
|
1271
1277
|
.w-md-editor-content {
|
|
1278
|
+
height: 100%;
|
|
1279
|
+
overflow: auto;
|
|
1272
1280
|
position: relative;
|
|
1273
1281
|
border-radius: 0 0 3px 0;
|
|
1274
|
-
|
|
1282
|
+
}
|
|
1283
|
+
.w-md-editor .copied {
|
|
1284
|
+
display: none !important;
|
|
1275
1285
|
}
|
|
1276
1286
|
.w-md-editor-input {
|
|
1277
1287
|
width: 50%;
|