You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> While extensions and configs can theoretically be added at any time, it is recommended that they be added immediately after loading the script.
83
91
92
+
## Handling User Input
93
+
94
+
While you can certainly build user interfaces with JavaScript and CSS, leveraging native UI components might be a better option.
95
+
96
+
To create UI entries for your features, you can use the [addMainMenuItem](https://github.com/search?q=repo%3AMarkEdit-app%2FMarkEdit-api+addMainMenuItem&type=code) function, which adds an item to the "Extensions" submenu of the main menu, with keyboard shortcuts support.
97
+
98
+
To request user input, try using [showContextMenu](https://github.com/search?q=repo%3AMarkEdit-app%2FMarkEdit-api+showContextMenu&type=code), [showAlert](https://github.com/search?q=repo%3AMarkEdit-app%2FMarkEdit-api+showAlert&type=code), and [showTextBox](https://github.com/search?q=repo%3AMarkEdit-app%2FMarkEdit-api+showTextBox&type=code).
99
+
84
100
## Building
85
101
86
102
In your build configuration, mark used MarkEdit and CodeMirror dependencies as `external`.
For complete examples, refer to [Example: Markdown Table Editor](https://github.com/MarkEdit-app/MarkEdit-mte), [Example: Text Highlight](https://github.com/MarkEdit-app/MarkEdit-highlight) and [Example: Vue Language Package](https://github.com/MarkEdit-app/MarkEdit-lang-vue).
166
+
167
+
Also, [markedit.d.ts](./markedit.d.ts) is fully typed and documented, use it as the API reference.
0 commit comments