1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Plugin API: Rename CodeMirrorContentScriptModule to MarkdownEditorContentScriptModule (#10015)

This commit is contained in:
Henry Heino 2024-03-02 07:57:40 -08:00 committed by GitHub
parent 9a2a251eec
commit 4c6969b17d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -566,8 +566,8 @@ export interface CodeMirrorControl {
};
}
export interface CodeMirrorContentScriptModule extends Omit<ContentScriptModule, 'plugin'> {
plugin: (codeMirrorControl: CodeMirrorControl)=> void;
export interface MarkdownEditorContentScriptModule extends Omit<ContentScriptModule, 'plugin'> {
plugin: (editorControl: CodeMirrorControl)=> void;
}
export enum ContentScriptType {

View File

@ -6,7 +6,7 @@
//
import { lineNumbers, highlightActiveLineGutter, EditorView } from '@codemirror/view';
import { completeFromList } from '@codemirror/autocomplete';
import { CodeMirrorContentScriptModule, ContentScriptContext } from 'api/types';
import { MarkdownEditorContentScriptModule, ContentScriptContext } from 'api/types';
//
// For the above import to work, you may also need to add @codemirror/view as a dev dependency
// to package.json. (For the type information only).
@ -15,7 +15,7 @@ import { CodeMirrorContentScriptModule, ContentScriptContext } from 'api/types';
// const { lineNumbers } = joplin.require('@codemirror/view');
export default (_context: ContentScriptContext): CodeMirrorContentScriptModule => {
export default (_context: ContentScriptContext): MarkdownEditorContentScriptModule => {
return {
// - codeMirrorWrapper: A thin wrapper around CodeMirror 6, designed to be similar to the
// CodeMirror 5 API. If running in CodeMirror 5, a CodeMirror object is provided instead.

View File

@ -566,8 +566,8 @@ export interface CodeMirrorControl {
};
}
export interface CodeMirrorContentScriptModule extends Omit<ContentScriptModule, 'plugin'> {
plugin: (codeMirrorControl: CodeMirrorControl)=> void;
export interface MarkdownEditorContentScriptModule extends Omit<ContentScriptModule, 'plugin'> {
plugin: (editorControl: CodeMirrorControl)=> void;
}
export enum ContentScriptType {