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

✨ [Feature]: 希望能增加编辑源码进行回显的功能 #116

Open
kagol opened this issue Nov 7, 2024 · 2 comments
Open

✨ [Feature]: 希望能增加编辑源码进行回显的功能 #116

kagol opened this issue Nov 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@kagol
Copy link
Member

kagol commented Nov 7, 2024

What problem does this feature solve

希望在工具栏中增加一个“源码”的按钮,点击这个按钮编辑器变成html源码,可以直接编辑html源码,再次点击“源码”按钮可以进行回显。

初步分析:目前是可以定制工具栏图标的,并且能绑定事件,只需要在事件中获取到html,显示在编辑器中即可;编辑完html再次点击“源码”按钮,可以将html渲染到编辑器中。

What does the proposed API look like

同上

What is your project name

邮件系统

@kagol kagol added the enhancement New feature or request label Nov 7, 2024
@zzxming
Copy link
Collaborator

zzxming commented Nov 10, 2024

理论上能够合法显示的内容通过编辑器内的功能都能实现,直接编辑html的话反而可能会出现显示和获取delta类型数据和获取html类型数据不匹配的情况,甚至可能出现编辑添加或者删除部分字符,导致模块出现报错而功能失效的情况(表格)。

有什么情况是一定需要在编辑器内进行html编辑呢?

@kagol
Copy link
Member Author

kagol commented Nov 28, 2024

理论上能够合法显示的内容通过编辑器内的功能都能实现,直接编辑html的话反而可能会出现显示和获取delta类型数据和获取html类型数据不匹配的情况,甚至可能出现编辑添加或者删除部分字符,导致模块出现报错而功能失效的情况(表格)。

有什么情况是一定需要在编辑器内进行html编辑呢?

我觉得这不是一个强需求,目前只有一个用户提出,不能代表普遍的用户诉求,可以持续观察下,看下是否有其他业务有类似需求。

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

No branches or pull requests

2 participants