@bhsd/codemirror-mediawiki 2.0.9 → 2.0.10

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 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/wikiparser-node/index.html#linter) when the option "with syntax highlighting" is checked.
24
+ Here is a [demo](https://bhsd-harry.github.io/codemirror-mediawiki).
26
25
 
27
26
  # Usage
28
27
 
@@ -120,19 +119,6 @@ cm.prefer( [
120
119
 
121
120
  </details>
122
121
 
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
122
  ## setIndent
137
123
 
138
124
  <details>
@@ -24,8 +24,6 @@ export declare class CodeMirror6 {
24
24
  lint(lintSource?: (str: string) => Diagnostic[] | Promise<Diagnostic[]>): void;
25
25
  /** 立即更新语法检查 */
26
26
  update(): void;
27
- /** 保存至文本框 */
28
- save(): void;
29
27
  /** 添加扩展 */
30
28
  prefer(names: string[]): void;
31
29
  /** 设置缩进 */