mathquill web公式编辑器 总结 、实列、 源码

来源:互联网 发布:怎么看对手人群数据 编辑:程序博客网 时间:2024/06/06 18:50

JMEditor  也看过些列子,感觉也是由mathquill 和ckEditor。 由于ckEditor 上传图片和表情之类的小功能还需要自己扩展、更改,所以选择百度UEditor 进行集成

效果还不错  如下:



源码下载地址:猛击这里

参考网站 

mathquill:及相关图片公式生成网站

mathquill demo: http://mathquill.com/demo.html
该demo 具体列子 mathquill code 转换为可视化 html,在由 html 转换为 mathquill code 有时间可以看下

mathquill 下载地址
https://github.com/mathquill/mathquill

mathquill 编码转换img 地址
http://latex.codecogs.com/gif.latex?\frac{d}{dx}\sqrt{x}=

http://mathquill.com



也有部分公式转换 html 不支持(文件路径:\editor\dialogs\equation\js\markitup.js ) 比如:
{ name: '矢量(右)', replaceWith: '{/}overrightarrow{ab} ' },
{ name: '矢量(左)', replaceWith: '{/}overleftarrow{ab} ' },
{ name: '矢量', replaceWith: '{/}widehat{ab} ' },
{ name: '矩阵', replaceWith: '{/}begin{bmatrix}a & b {/}{/}c & d {/}end{bmatrix} ' },
{ name: '方程组', replaceWith: '{/}begin{cases} {a} {/}{/} {b} {/}end{cases} ' },
{ name: '化学反应方程式', replaceWith: '{/}mathop{={/}!={/}!=}^{a}_{b} ' },

{ name: '极限', replaceWith: '{/}lim_{n {/}to {/}infty} ' },


最后也希望跟多的,更完整的 编辑器列子大家也分享下 

尊重原创:转载注明来源地址http://blog.csdn.net/pcb7777777/article/details/34411087

0 0
原创粉丝点击