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

功能:加入html源码编辑功能 #291

Open
cycleccc opened this issue Oct 25, 2024 · 5 comments
Open

功能:加入html源码编辑功能 #291

cycleccc opened this issue Oct 25, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@cycleccc
Copy link
Owner

          @cycleccc 是否考虑加入html源码编辑功能。

Originally posted by @openlearnc in #287 (comment)

@cycleccc
Copy link
Owner Author

@openlearnc 这个不能通过自定义插件实现吗,自定义一个 插件 getHtml 获取内容到弹窗编辑后再 setHtml 注入

@cycleccc cycleccc changed the title 功能:加入html源码编辑功能。 功能:加入html源码编辑功能 Oct 25, 2024
@openlearnc
Copy link

能。自己通过自定义插件实现也是可以的。

@cycleccc
Copy link
Owner Author

cycleccc commented Oct 25, 2024

可以自定义插件,尽量自定义插件,不额外增加包体积。如果使用的人多的话可以在 package 里加个包,灵活选择是否使用。
@openlearnc 有兴趣的话可以搞个相关的插件加到 package 目录下

@openlearnc
Copy link

openlearnc commented Oct 25, 2024

但底层需要支持,我用tinymce加入一个style属性,编辑器内的文本会出现相应的效果,但wangeditor没出现,底层是否支持还需要测试。

@cycleccc
Copy link
Owner Author

这个 style 必须是 wangEditor 支持的,不支持的 属性会过滤掉。具体 style 支不支持用 setHtml 试一下就知道了。

@cycleccc cycleccc added the enhancement New feature or request label Oct 29, 2024
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