@kong-ui-public/monaco-editor 0.15.0 → 0.16.0
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 +15 -0
- package/dist/runtime/monaco-editor.es.js +660 -481
- package/dist/runtime/monaco-editor.umd.js +86 -83
- package/dist/types/src/actions/helpers.d.ts +17 -0
- package/dist/types/src/actions/helpers.d.ts.map +1 -1
- package/dist/types/src/actions/index.d.ts +2 -1
- package/dist/types/src/actions/index.d.ts.map +1 -1
- package/dist/types/src/actions/list.d.ts +7 -0
- package/dist/types/src/actions/list.d.ts.map +1 -0
- package/dist/types/src/actions/markdownShortcuts.d.ts +17 -0
- package/dist/types/src/actions/markdownShortcuts.d.ts.map +1 -0
- package/dist/types/src/composables/useMonacoEditor.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -179,6 +179,15 @@ Configuration for the editor toolbar, which displays action buttons above the ed
|
|
|
179
179
|
The following built-in actions are available:
|
|
180
180
|
|
|
181
181
|
- **`format`**: Formats the editor content using Monaco's formatter
|
|
182
|
+
- **`bold`**: Toggles bold text (`**text**`) — *markdown/mdc only*
|
|
183
|
+
- **`italic`**: Toggles italic text (`_text_`) — *markdown/mdc only*
|
|
184
|
+
- **`strikethrough`**: Toggles strikethrough text (`~~text~~`) — *markdown/mdc only*
|
|
185
|
+
- **`inlineCode`**: Toggles inline code (`` `code` ``) — *markdown/mdc only*
|
|
186
|
+
- **`link`**: Inserts a link (`[text](url)`) — *markdown/mdc only*
|
|
187
|
+
- **`image`**: Inserts an image (``) — *markdown/mdc only*
|
|
188
|
+
- **`unorderedList`**: Toggles unordered list prefix (`- `) — *markdown/mdc only*
|
|
189
|
+
- **`orderedList`**: Toggles ordered list prefix (`1. `, `2. `, …) — *markdown/mdc only*
|
|
190
|
+
- **`taskList`**: Toggles task list prefix (`- [ ] `) — *markdown/mdc only*
|
|
182
191
|
- **`search`**: Toggles the search/find widget
|
|
183
192
|
- **`fullScreen`**: Toggles full-screen mode for the editor
|
|
184
193
|
|
|
@@ -198,6 +207,12 @@ interface MonacoEditorToolbarOptions {
|
|
|
198
207
|
}
|
|
199
208
|
```
|
|
200
209
|
|
|
210
|
+
##### Markdown Shortcuts
|
|
211
|
+
|
|
212
|
+
When the editor language is `markdown` or `mdc`, the following keyboard shortcuts are automatically active:
|
|
213
|
+
|
|
214
|
+
- **List continuation on Enter**: Pressing Enter at the end of a list item automatically continues the list on the next line with the appropriate prefix (`- `, `1. `, `- [ ] `, etc.). Pressing Enter on an empty list item removes the prefix and ends the list.
|
|
215
|
+
|
|
201
216
|
##### Action Configuration
|
|
202
217
|
|
|
203
218
|
Each action can be configured with the following options:
|