md-editor-v3 4.3.0-beta.4 → 4.3.0-beta.6
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 +1 -2
- package/lib/cjs/MdEditor.cjs +16 -16
- package/lib/cjs/chunks/index.cjs +7 -7
- package/lib/es/MdEditor.mjs +507 -479
- package/lib/es/chunks/index.mjs +171 -160
- package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +3 -3
- package/lib/types/MdEditor/type.d.ts +2 -1
- package/lib/umd/index.js +6 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Extension } from '@codemirror/state';
|
|
2
2
|
import { EditorView } from '@codemirror/view';
|
|
3
|
-
import { FocusOption } from '
|
|
3
|
+
import { FocusOption } from '../../../type';
|
|
4
4
|
export default class CodeMirrorUt {
|
|
5
5
|
view: EditorView;
|
|
6
6
|
private toggleTabSize;
|
|
@@ -31,12 +31,12 @@ export default class CodeMirrorUt {
|
|
|
31
31
|
* @param text 待替换内容
|
|
32
32
|
* @param options 替换后是否选中
|
|
33
33
|
*/
|
|
34
|
-
replaceSelectedText(text: string, options
|
|
34
|
+
replaceSelectedText(text: string, options: {
|
|
35
35
|
select: boolean;
|
|
36
36
|
deviationStart: number;
|
|
37
37
|
deviationEnd: number;
|
|
38
38
|
replaceAll: boolean;
|
|
39
|
-
}): void;
|
|
39
|
+
} | undefined, editorId: string): void;
|
|
40
40
|
constructor(view: EditorView);
|
|
41
41
|
/**
|
|
42
42
|
* 设置tabSize
|
|
@@ -249,8 +249,9 @@ export type Config = (options: ConfigOption) => void;
|
|
|
249
249
|
* 编辑器操作潜在的错误
|
|
250
250
|
*/
|
|
251
251
|
export interface InnerError {
|
|
252
|
-
name:
|
|
252
|
+
name: 'Cropper' | 'fullscreen' | 'prettier' | 'overlength';
|
|
253
253
|
message: string;
|
|
254
|
+
data: any;
|
|
254
255
|
}
|
|
255
256
|
export interface CodeCss {
|
|
256
257
|
[key: string]: {
|