1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Mobile: Add support for plugin panels and dialogs (#10121)

This commit is contained in:
Henry Heino
2024-03-14 12:04:32 -07:00
committed by GitHub
parent b9eb4522f5
commit b3ec92a57e
34 changed files with 1013 additions and 44 deletions

View File

@ -18,7 +18,6 @@ import { _ } from '@joplin/lib/locale';
import MarkdownToolbar from './MarkdownToolbar/MarkdownToolbar';
import { ChangeEvent, EditorEvent, EditorEventType, SelectionRangeChangeEvent, UndoRedoDepthChangeEvent } from '@joplin/editor/events';
import { EditorCommandType, EditorKeymap, EditorLanguageType, SearchState } from '@joplin/editor/types';
import supportsCommand from '@joplin/editor/CodeMirror/editorCommands/supportsCommand';
import SelectionFormatting, { defaultSelectionFormatting } from '@joplin/editor/SelectionFormatting';
import useCodeMirrorPlugins from './hooks/useCodeMirrorPlugins';
import RNToWebViewMessenger from '../../utils/ipc/RNToWebViewMessenger';
@ -159,7 +158,7 @@ const useEditorControl = (
const control: EditorControl = {
supportsCommand(command: EditorCommandType) {
return supportsCommand(command);
return bodyControl.supportsCommand(command);
},
execCommand(command, ...args: any[]) {
return bodyControl.execCommand(command, ...args);