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

建议:降低使用者门槛 #352

Open
nenge123 opened this issue Nov 16, 2024 · 1 comment
Open

建议:降低使用者门槛 #352

nenge123 opened this issue Nov 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nenge123
Copy link

功能描述

使用文档全是ts构建,如果在纯web端引入,就不能类继承,注册菜单工具。无可否认ts很火,但是绝大部份网站主是不会使用的。tinymce火爆,无他,不需要构建也可以很好配置菜单,界面工具等。

1.建议把插件,原始工具类(buttonMenu)全部封装到两个**Map()**对象内。
那么我想修改图片上传插件内部结构,仅仅

plugins.set('uploadImage',class extends plugins.get('uploadImage'){});
或者
plugins.reset('uploadImage',obj=>class extends obj{});

配置的自定义方法终究是无法调用内部对象如onfail onprogress

2。使用优化,屏蔽右键,采用工具菜单。去除不必要的加粗,斜体的菜单工具,改成,双击选取文字时在鼠标附近显示加粗,斜体,背景色,等浮框选项。

3.如果12,不能实现,请考虑增加es module 加载,而不是封装在一个闭包。

可参考的案例

ckeditor tinymce

@cycleccc cycleccc added the enhancement New feature or request label Nov 17, 2024
@mengyusong
Copy link

什么年代了, 不用ts 肯定不行的,ts 提供了完整的类型提示,只会提高开发效率。

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

3 participants