Skip to content

editor: 粘贴图片处理 #30

Description

@yexiyue

描述

实现粘贴图片自动处理:粘贴图片时自动保存到本地存储,在光标位置插入 Markdown 图片链接。

前置依赖

验收标准

  • 粘贴图片时自动保存到本地存储
  • 在光标位置插入 ![image](local-path/image.png)
  • 图片 Widget 渲染显示粘贴的图片
  • 支持从剪贴板粘贴(截图/复制图片)

技术备注

  • WebView 内监听 paste 事件,提取图片数据
  • 通过 Comlink 传输图片数据(Base64)到 RN 侧
  • RN 侧调用文件系统 API 保存图片,返回文件路径
  • 存储方案待定:本地文件系统 vs SQLite BLOB(建议文件系统)

原始文档

查看 Feature 文档

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions