1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Fixes #9512: Pasting rich text in the RTE sometimes result in invalid markup

This commit is contained in:
Laurent Cozic
2024-01-26 19:11:05 +00:00
parent b69d752734
commit 3e13a95053
16 changed files with 113 additions and 55 deletions

View File

@ -1,6 +1,9 @@
import Resource from '@joplin/lib/models/Resource';
import Logger from '@joplin/utils/Logger';
import { HtmlToMarkdownHandler, MarkupToHtmlHandler } from './types';
const logger = Logger.create('contextMenuUtils');
export enum ContextMenuItemType {
None = '',
Image = 'image',
@ -22,6 +25,8 @@ export interface ContextMenuOptions {
isReadOnly?: boolean;
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
fireEditorEvent: Function;
htmlToMd: HtmlToMarkdownHandler;
mdToHtml: MarkupToHtmlHandler;
}
export interface ContextMenuItem {