@bhsd/codemirror-mediawiki 2.0.9 → 2.0.11
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 +2 -15
- package/dist/codemirror.d.ts +0 -2
- package/dist/main.min.js +1 -1
- package/package.json +3 -3
- package/dist/main.min.js.LICENSE.txt +0 -5
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
- [view](#view)
|
|
12
12
|
- [lint](#lint)
|
|
13
13
|
- [prefer](#prefer)
|
|
14
|
-
- [save](#save)
|
|
15
14
|
- [setIndent](#setindent)
|
|
16
15
|
- [setLanguage](#setlanguage)
|
|
17
16
|
- [update](#update)
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
|
|
23
22
|
This repository contains a modified version of the frontend scripts and styles from [MediaWiki extension CodeMirror](https://www.mediawiki.org/wiki/Extension:CodeMirror). The goal is to support a standalone integration between [CodeMirror](https://codemimrror.net) and [Wikitext](https://www.mediawiki.org/wiki/Wikitext), without the need for a [MediaWiki environment](https://doc.wikimedia.org/mediawiki-core/master/js/).
|
|
24
23
|
|
|
25
|
-
Here is a [demo](https://bhsd-harry.github.io/
|
|
24
|
+
Here is a [demo](https://bhsd-harry.github.io/codemirror-mediawiki).
|
|
26
25
|
|
|
27
26
|
# Usage
|
|
28
27
|
|
|
@@ -114,25 +113,13 @@ cm.prefer( [
|
|
|
114
113
|
'closeBrackets',
|
|
115
114
|
'highlightActiveLine',
|
|
116
115
|
'highlightSpecialChars',
|
|
116
|
+
'highlightWhitespace',
|
|
117
117
|
'highlightTrailingWhitespace',
|
|
118
118
|
] );
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
</details>
|
|
122
122
|
|
|
123
|
-
## save
|
|
124
|
-
|
|
125
|
-
<details>
|
|
126
|
-
<summary>Expand</summary>
|
|
127
|
-
|
|
128
|
-
Save the content of CodeMirror to the textarea.
|
|
129
|
-
|
|
130
|
-
```js
|
|
131
|
-
cm.update();
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
</details>
|
|
135
|
-
|
|
136
123
|
## setIndent
|
|
137
124
|
|
|
138
125
|
<details>
|
package/dist/codemirror.d.ts
CHANGED