Better handling of formatting in pasted text

This commit is contained in:
Scott Nonnenberg 2023-05-23 15:00:05 -07:00 committed by GitHub
parent d012779e87
commit a31cf5645e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 105 additions and 43 deletions

View file

@ -64,8 +64,8 @@ export const matchMonospace = (node: HTMLElement, delta: Delta): Delta => {
export const matchSpoiler = (node: HTMLElement, delta: Delta): Delta => {
const classes = [
'quill--spoiler',
'MessageTextRenderer__formatting--spoiler',
'MessageTextRenderer__formatting--spoiler--revealed',
// Note: we don't match on hidden spoilers in message body; we use copy-target text
];
if (