Merge pull request #850 from AppFlowy-IO/feat/paste-image

Feat: paste image from link
This commit is contained in:
Vincent Chan 2022-08-15 16:16:59 +08:00 committed by GitHub
commit deefd396fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,8 @@ class HTMLToNodesConverter {
return _handleListElement(element);
} else if (element.localName == HTMLTag.paragraph) {
return [_handleParagraph(element, attributes)];
} else if (element.localName == HTMLTag.image) {
return [_handleImage(element)];
} else {
final delta = Delta();
delta.insert(element.text);