Improve emoji blot and override clipboard behavior

This commit is contained in:
Sidney Keese 2020-11-06 12:11:18 -08:00 committed by GitHub
parent d4d9688447
commit 91beef7797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 181 additions and 84 deletions

View file

@ -11,6 +11,9 @@ import { RenderTextCallbackType } from '../../types/Util';
import { emojiToImage, SizeClassType } from '../emoji/lib';
// Some of this logic taken from emoji-js/replacement
// the DOM structure for this getImageTag should match the other emoji implementations:
// ts/components/emoji/Emoji.tsx
// ts/quill/emoji/blot.tsx
function getImageTag({
match,
sizeClass,