Skip to content

Commit a92ea37

Browse files
committed
doc: update codemirror website url
1 parent 2186b90 commit a92ea37

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
 
1111
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=for-the-badge)](/LICENSE)
1212

13-
[CodeMirror(6)](https://codemirror.net/6) component for Vue(3).
13+
[CodeMirror(6)](https://codemirror.net) component for Vue(3).
1414

15-
**vue-codemirror** v5 has been released. This is a new version based on [CodeMirror@6](https://codemirror.net/6) and is available to Vue3 only. Since CodeMirror@6 is developed with native ES Modules, the new version will no longer support direct browser references to UMD modules. In short, the new version is ⚠️ **completely NOT compatible** with previous versions. If you wish to continue using Vue2 or a lower version of CodeMirror, please refer to the legacy versions below.
15+
**vue-codemirror** v5 has been released. This is a new version based on [CodeMirror@6](https://codemirror.net) and is available to Vue3 only. Since CodeMirror@6 is developed with native ES Modules, the new version will no longer support direct browser references to UMD modules. In short, the new version is ⚠️ **completely NOT compatible** with previous versions. If you wish to continue using Vue2 or a lower version of CodeMirror, please refer to the legacy versions below.
1616

1717
This [**example site**](https://github.surmon.me/vue-codemirror) contains most of what you want.
1818

@@ -25,11 +25,11 @@ This [**example site**](https://github.surmon.me/vue-codemirror) contains most o
2525

2626
#### Documentation
2727

28-
- [CodeMirror6 Guide](https://codemirror.net/6/docs/guide/)
29-
- [CodeMirror6 APIs](https://codemirror.net/6/docs/ref/)
30-
- [CodeMirror6 Examples](https://codemirror.net/6/examples/)
31-
- [CodeMirror6 Example: Writing a Language Package](https://codemirror.net/6/examples/lang-package/)
32-
- [CodeMirror6 Example: Styling](https://codemirror.net/6/examples/styling/)
28+
- [CodeMirror6 Guide](https://codemirror.net/docs/guide/)
29+
- [CodeMirror6 APIs](https://codemirror.net/docs/ref/)
30+
- [CodeMirror6 Examples](https://codemirror.net/examples/)
31+
- [CodeMirror6 Example: Writing a Language Package](https://codemirror.net/examples/lang-package/)
32+
- [CodeMirror6 Example: Styling](https://codemirror.net/examples/styling/)
3333
- [CodeMirror Forum](https://discuss.codemirror.net/)
3434

3535
#### CodeMirror packages
@@ -156,7 +156,7 @@ app.use(VueCodemirror, {
156156

157157
### Basic Setup
158158

159-
The [basic-setup](https://codemirror.net/6/docs/ref/#basic-setup) extension is integrated by default in the vue-codemirror configuration, and is intended as a handy helper to quickly set up CodeMirror without having to install and import a lot of standalone packages. If you want to override the default behavior of the config, just pass the empty array when installing the component globally.
159+
The [basic-setup](https://codemirror.net/docs/ref/#basic-setup) extension is integrated by default in the vue-codemirror configuration, and is intended as a handy helper to quickly set up CodeMirror without having to install and import a lot of standalone packages. If you want to override the default behavior of the config, just pass the empty array when installing the component globally.
160160

161161
```js
162162
app.use(VueCodemirror, {

src/codemirror.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const setDoc = (view: EditorView, newDoc: string) => {
4949
export const destroy = (view: EditorView) => view.destroy()
5050
export const focus = (view: EditorView) => view.focus() // TODO: focus on the last word
5151

52-
// https://codemirror.net/6/examples/config/
52+
// https://codemirror.net/examples/config/
5353
// https://github.com/uiwjs/react-codemirror/blob/22cc81971a/src/useCodeMirror.ts#L144
5454
// https://gist.github.com/s-cork/e7104bace090702f6acbc3004228f2cb
5555
const rerunCompartment = () => {
@@ -66,7 +66,7 @@ const rerunCompartment = () => {
6666
return { compartment, run }
6767
}
6868

69-
// https://codemirror.net/6/examples/reconfigure/
69+
// https://codemirror.net/examples/reconfigure/
7070
export const rerunExtension = () => rerunCompartment().run
7171
export const toggleExtension = (extension: Extension) => {
7272
const { compartment, run } = rerunCompartment()
@@ -82,9 +82,9 @@ export const extensions = {
8282
placeholder: (string: string) => placeholder(string),
8383
disable: () => [EditorView.editable.of(false), EditorState.readOnly.of(true)],
8484
enable: () => [EditorView.editable.of(true), EditorState.readOnly.of(false)],
85-
// https://codemirror.net/6/examples/tab/
85+
// https://codemirror.net/examples/tab/
8686
indentWithTab: () => keymap.of([indentWithTab]),
8787
tabSize: (tabSize: number) => [EditorState.tabSize.of(tabSize), indentUnit.of(' '.repeat(tabSize))],
88-
// https://codemirror.net/6/examples/styling/
88+
// https://codemirror.net/examples/styling/
8989
style: (style: CSS.Properties) => EditorView.theme({ '&': { ...style } })
9090
}

0 commit comments

Comments
 (0)