1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Desktop: Add 'Paste as text' to the Context menu of the Rich Text Editor (#7769)

This commit is contained in:
pedr
2023-02-15 10:59:32 -03:00
committed by GitHub
parent 7d7b7ed6f3
commit dd86940c6b
10 changed files with 63 additions and 29 deletions

View File

@@ -11,6 +11,7 @@ import convertToScreenCoordinates from '../../../../utils/convertToScreenCoordin
import Setting from '@joplin/lib/models/Setting';
import Resource from '@joplin/lib/models/Resource';
import { TinyMceEditorEvents } from './types';
const menuUtils = new MenuUtils(CommandService.instance());
@@ -77,6 +78,9 @@ export default function(editor: any, plugins: PluginStates, dispatch: Function)
editor.insertContent(content);
},
isReadOnly: false,
fireEditorEvent: (event: TinyMceEditorEvents) => {
editor.fire(event);
},
};
let template = [];