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:
@ -7,6 +7,7 @@ import JoplinViewsMenus from './JoplinViewsMenus';
|
||||
import JoplinViewsToolbarButtons from './JoplinViewsToolbarButtons';
|
||||
import JoplinViewsPanels from './JoplinViewsPanels';
|
||||
import JoplinViewsNoteList from './JoplinViewsNoteList';
|
||||
import JoplinViewsEditors from './JoplinViewsEditor';
|
||||
|
||||
/**
|
||||
* This namespace provides access to view-related services.
|
||||
@ -25,6 +26,7 @@ export default class JoplinViews {
|
||||
private menus_: JoplinViewsMenus = null;
|
||||
private toolbarButtons_: JoplinViewsToolbarButtons = null;
|
||||
private dialogs_: JoplinViewsDialogs = null;
|
||||
private editors_: JoplinViewsEditors = null;
|
||||
private noteList_: JoplinViewsNoteList = null;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
private implementation_: any = null;
|
||||
@ -46,6 +48,11 @@ export default class JoplinViews {
|
||||
return this.panels_;
|
||||
}
|
||||
|
||||
public get editors() {
|
||||
if (!this.editors_) this.editors_ = new JoplinViewsEditors(this.plugin, this.store);
|
||||
return this.editors_;
|
||||
}
|
||||
|
||||
public get menuItems() {
|
||||
if (!this.menuItems_) this.menuItems_ = new JoplinViewsMenuItems(this.plugin, this.store);
|
||||
return this.menuItems_;
|
||||
|
Reference in New Issue
Block a user