mathEditor
mathEditor copied to clipboard
请问 您这个 集合到 wangEditor中的 例子,我项目中由于插入表格 的样式 想和 UEditor 中相似,所以想把您的这个组件放到UEditor中需要怎么移植
请问 您这个 集合到 wangEditor中的 例子,我项目中由于插入表格 的样式 想和 UEditor 中相似,所以想把您的这个组件放到UEditor中需要怎么移植
简单的引入方法:可以替换dialogs/help.html的内容。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>mathEditor</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<script type="text/javascript" src="../../third-party/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="./mathEdit.min.js"></script>
<script type="text/javascript" src="../internal.js"></script>
</head>
<body>
<div id="myEdit" style="padding: 10px;"></div>
<script>
var mathEdit = new window.MathEdit({
elId: 'myEdit'
})
dialog.onok = function () {
var value = mathEdit.getValue()
value && editor.execCommand('insertHTML', value);
};
</script>
</body>
</html>
已提交ueditor具体嵌入示例于test文件夹中,请查看。
哇 感谢您的回答 @DemoJj Thx bro
Hi bro我想把 确认按钮的点击事件放到 点击公式的地方,怎么实现不需要 确认按钮了, 还有这个 集成到UEditor中 会遇到公式插入的bug, 所以还是决定潜入到wangEditor中 但是想把确认按钮取消掉直接点击 公式, 然后公式出现在 富文本编辑框中
直接点击文本框
目前是不行的,它需要经过数学公式编辑器编辑后才能输出html到外部编辑器。