markupeditor 0.9.5 → 0.9.7
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/config/behaviorconfig.json +7 -0
- package/config/keymapconfig.json +24 -0
- package/config/toolbarconfig.json +79 -0
- package/dist/custom-elements.json +30 -4
- package/dist/markup-editor.js +296 -255
- package/package.json +5 -3
- package/styles/toolbar.css +19 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markupeditor",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"description": "A web component and API for WYSIWYG HTML editing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
|
20
20
|
"bin",
|
|
21
|
-
"styles"
|
|
21
|
+
"styles",
|
|
22
|
+
"config"
|
|
22
23
|
],
|
|
23
24
|
"license": "MIT",
|
|
24
25
|
"author": "Steven G. Harris <steven.g.harris@gmail.com>",
|
|
@@ -48,12 +49,13 @@
|
|
|
48
49
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
49
50
|
"@eslint/js": "^9.35.0",
|
|
50
51
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
52
|
+
"@rollup/plugin-json": "6.1.0",
|
|
51
53
|
"eslint": "^9.35.0",
|
|
52
54
|
"jsdoc": "^4.0.5",
|
|
53
55
|
"jsdom": "^27.0.1",
|
|
54
56
|
"modern-jsdoc-template": "^1.0.0",
|
|
55
57
|
"rollup": "^4.31.0",
|
|
56
|
-
"rollup-plugin-import-css": "4.0.1",
|
|
58
|
+
"rollup-plugin-import-css": "4.0.1",
|
|
57
59
|
"vitest": "^3.2.4"
|
|
58
60
|
},
|
|
59
61
|
"scripts": {
|
package/styles/toolbar.css
CHANGED
|
@@ -174,16 +174,18 @@
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.Markup-menu-dropdown-wrap {
|
|
177
|
-
display:
|
|
177
|
+
display: flex;
|
|
178
|
+
justify-content: space-between;
|
|
178
179
|
padding: 0 4px;
|
|
179
|
-
|
|
180
|
+
width: 2.9em;
|
|
180
181
|
height: inherit;
|
|
181
182
|
border-radius: 4px;
|
|
182
183
|
background: inherit;
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
.Markup-menu-dropdown-icon-wrap {
|
|
186
|
-
display:
|
|
187
|
+
display: flex;
|
|
188
|
+
justify-content: space-between;
|
|
187
189
|
padding-right: 4px;
|
|
188
190
|
width: 1.8em;
|
|
189
191
|
height: inherit;
|
|
@@ -200,24 +202,34 @@
|
|
|
200
202
|
background: inherit;
|
|
201
203
|
}
|
|
202
204
|
|
|
205
|
+
/* For the paragraph style dropdown with a label, make the font smaller */
|
|
203
206
|
.Markup-menu-dropdown {
|
|
204
|
-
display:
|
|
207
|
+
display: flex;
|
|
205
208
|
justify-content: space-between;
|
|
206
|
-
|
|
209
|
+
align-items: center;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
font-size: 0.8em;
|
|
212
|
+
width: inherit;
|
|
207
213
|
height: inherit;
|
|
208
214
|
background: inherit;
|
|
209
215
|
position: absolute;
|
|
210
216
|
}
|
|
211
217
|
|
|
218
|
+
/* But for the indicator, bump size up to match the icon-style dropdown */
|
|
219
|
+
.Markup-menu-dropdown .Markup-menu-dropdown-indicator {
|
|
220
|
+
font-size: 1.25em;
|
|
221
|
+
}
|
|
222
|
+
|
|
212
223
|
.Markup-menu-dropdown-icon {
|
|
213
224
|
display: inline-flex;
|
|
214
225
|
justify-content: space-between;
|
|
215
|
-
|
|
226
|
+
font-size: inherit;
|
|
227
|
+
width: inherit;
|
|
216
228
|
cursor: pointer;
|
|
217
229
|
position: absolute;
|
|
218
230
|
}
|
|
219
231
|
|
|
220
|
-
.Markup-menu-dropdown-indicator
|
|
232
|
+
.Markup-menu-dropdown-indicator {
|
|
221
233
|
opacity: .6;
|
|
222
234
|
}
|
|
223
235
|
|