Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望可以支持嵌入块(比如 Draw.io)的能力 #54

Closed
lyonbot opened this issue Dec 9, 2021 · 6 comments
Closed

希望可以支持嵌入块(比如 Draw.io)的能力 #54

lyonbot opened this issue Dec 9, 2021 · 6 comments
Labels
enhancement New feature or request good idea

Comments

@lyonbot
Copy link
Contributor

lyonbot commented Dec 9, 2021

比如嵌入 draw.io 等,在文本形式下存储的可以是形如

```drawio
[base64 content]
```

这样的内容

为了避免在输入框里,base64的东西太长太乱,可以使用 CodeMirror 的 markText 方案,将其折叠并替换为一个占位符。点击占位符可以打开弹窗编辑内容

@lyonbot lyonbot changed the title 希望可以支持诸如嵌入块的能力 希望可以支持嵌入块(比如 Draw.io)的能力 Dec 9, 2021
@sunsonliu
Copy link
Collaborator

龟龟,我直呼好家伙,这个建议好棒~~
我们本来的计划是搞个后台存储服务,把draw.io的数据存到后台,前端拿到id+token,后面前端根据id+token向后台拿数据。
image

这么看来,cherry可以根据配置来进行判断,如果配置了后台服务,就拿id+token,如果没有配置后台服务,就用嵌入块的形式,类似的,粘贴图片(base64)也可以参考这种形式

@sunsonliu sunsonliu added enhancement New feature or request good idea labels Dec 9, 2021
@sunsonliu
Copy link
Collaborator

hello, 这个issue非常有意思,请问是腾讯员工吗,如果是的话可以联系一下我:)

@jh244212647
Copy link
Contributor

请问drawio还有开发计划么

@sunsonliu
Copy link
Collaborator

请问drawio还有开发计划么

最近我们主要是增加了一些新语法(比如信息面板、details,见下图),插入draw.io的能力我们再重新评估下哈

image

@jh244212647
Copy link
Contributor

如果能支持就太好了,在文档中直接插入编辑drawio也是一个非常便利的功能

@sunsonliu
Copy link
Collaborator

image

已增加插入draw.io的能力,欢迎体验 @jh244212647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good idea
Projects
None yet
Development

No branches or pull requests

3 participants