You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Plugins: Add support for editor plugins (#11296)
This commit is contained in:
@ -5,6 +5,10 @@ import { ButtonSpec } from './api/types';
|
||||
export interface PluginViewState {
|
||||
id: string;
|
||||
type: string;
|
||||
// Note that this property will mean different thing depending on the `containerType`. If it's a
|
||||
// dialog, it means that the dialog is opened. If it's a panel, it means it's visible/opened. If
|
||||
// it's an editor, it means the editor is currently active (but it may not be visible - see
|
||||
// JoplinViewsEditor).
|
||||
opened: boolean;
|
||||
buttons: ButtonSpec[];
|
||||
fitToContent?: boolean;
|
||||
@ -28,7 +32,7 @@ interface PluginContentScriptStates {
|
||||
[type: string]: PluginContentScriptState[];
|
||||
}
|
||||
|
||||
interface PluginState {
|
||||
export interface PluginState {
|
||||
id: string;
|
||||
contentScripts: PluginContentScriptStates;
|
||||
views: PluginViewStates;
|
||||
|
Reference in New Issue
Block a user