소스 검색

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

Feat: paste image from link
Vincent Chan 2 년 전
부모
커밋
deefd396fc
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      frontend/app_flowy/packages/flowy_editor/lib/src/infra/html_converter.dart

+ 2 - 0
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);