Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

feat: paste image directly

Vincent Chan3f9e16922f61
diff --git a/frontend/app_flowy/packages/flowy_editor/lib/src/infra/html_converter.dart b/frontend/app_flowy/packages/flowy_editor/lib/src/infra/html_converter.dart
index 0aa8d4fd13..f56184a57c 100644
--- a/frontend/app_flowy/packages/flowy_editor/lib/src/infra/html_converter.dart
+++ b/frontend/app_flowy/packages/flowy_editor/lib/src/infra/html_converter.dart
@@ -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);