We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
团队一开始在富文本编辑器选型上受限于公式编辑器的集成问题,最终采用的是百度开发的UEditor,该富文本编辑器很好的集成了公式编辑器插件-kityformula-editor。在当时的版本,很好的支持了公式输入输出的基本功能。随着后续的版本迭代,为了符合产品的交互风格和功能设计,团队将kityformula-editor进行了二次的封装,最终在web端和android端实现了公式软键盘的效果。
UEditor
kityformula-editor
一、视觉
视觉上倾向于软键盘的风格,web端设计为弹窗式,android端设计的更像原生键盘。默认支持android和web两种视觉风格。
二、配置
默认支持设备、协议和宽度三组配置信息,均通过url的query传入。
设备(device):支持web端和android端风格切换
协议(protocol):默认支持iframe、webview、document custom event三种协议,用户如果想要拓展其他通信协议,可参考src/editor/Message下的文件实现自定义协议。
宽度(width):公式软键盘支持等比例缩放,默认容器宽度使用window.innerWidth,如果想要自定义宽度,可通过该参数进行限制。
三、功能
https://github.com/SugarTurboS/Formula-Editor
The text was updated successfully, but these errors were encountered:
No branches or pull requests
背景
团队一开始在富文本编辑器选型上受限于公式编辑器的集成问题,最终采用的是百度开发的
UEditor
,该富文本编辑器很好的集成了公式编辑器插件-kityformula-editor
。在当时的版本,很好的支持了公式输入输出的基本功能。随着后续的版本迭代,为了符合产品的交互风格和功能设计,团队将kityformula-editor
进行了二次的封装,最终在web端和android端实现了公式软键盘的效果。特性
一、视觉
视觉上倾向于软键盘的风格,web端设计为弹窗式,android端设计的更像原生键盘。默认支持android和web两种视觉风格。
二、配置
默认支持设备、协议和宽度三组配置信息,均通过url的query传入。
设备(device):支持web端和android端风格切换
协议(protocol):默认支持iframe、webview、document custom event三种协议,用户如果想要拓展其他通信协议,可参考src/editor/Message下的文件实现自定义协议。
宽度(width):公式软键盘支持等比例缩放,默认容器宽度使用window.innerWidth,如果想要自定义宽度,可通过该参数进行限制。
三、功能
效果预览
源码地址
https://github.com/SugarTurboS/Formula-Editor
The text was updated successfully, but these errors were encountered: