Skip to content

Commit 3400461

Browse files
committed
feat: 替换默认公式引擎
1 parent 4e711e7 commit 3400461

File tree

30 files changed

+258
-132
lines changed

30 files changed

+258
-132
lines changed

public/asset/common/base.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/common/editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/common/photoswipe.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/common/share.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/vendor/ueditor/dialogs/formula/formula.html

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
<script type="text/javascript" src="../internal.js?20220503"></script>
77
<style type="text/css">
88
.wrapper {
9-
width: 600px;
10-
padding: 10px;
11-
height: 352px;
9+
box-sizing: border-box;
10+
width: 800px;
11+
height: 390px;
1212
overflow: hidden;
1313
position: relative;
1414
border-bottom: 1px solid #d7d7d7
1515
}
1616

1717
.editor-wrap {
1818
display: flex;
19+
margin:10px;
1920
}
2021

2122
.editor-wrap #editor {
@@ -29,7 +30,7 @@
2930
}
3031

3132
.input-tip {
32-
margin-top: 10px;
33+
margin:10px;
3334
}
3435

3536
.input-tip a {
@@ -39,9 +40,9 @@
3940
.editor-preview {
4041
background: #FFF;
4142
border-radius: 3px;
42-
margin-top: 10px;
4343
border: 1px solid #EEE;
44-
display:none;
44+
display: none;
45+
margin:10px;
4546
}
4647

4748
.editor-preview .title {
@@ -54,29 +55,40 @@
5455
}
5556

5657
.editor-preview .body .image {
57-
max-width:100%;
58-
max-height:100px;
58+
max-width: 100%;
59+
max-height: 100px;
5960
}
6061
</style>
6162
</head>
6263
<body>
6364
<div class="wrapper">
64-
<div class="editor-wrap">
65-
<textarea id="editor"></textarea>
66-
</div>
67-
<div class="input-tip">
68-
基于 latex 语法,<a href="javascript:;" id="inputDemo">点击输入示例</a>
65+
66+
<div id="modeLive" style="display:none;">
67+
<iframe id="liveEditor"
68+
frameborder="0"
69+
style="width:800px;height:390px;border: 0;outline: none;"
70+
></iframe>
6971
</div>
70-
<div class="editor-preview" id="preview">
71-
<div class="title">预览</div>
72-
<div class="body">
73-
<img class="image" id="previewImage" />
72+
73+
<div id="modePlain" style="display:none;">
74+
<div class="editor-wrap">
75+
<textarea id="editor"></textarea>
76+
</div>
77+
<div class="input-tip">
78+
基于 latex 语法,<a href="javascript:;" id="inputDemo">点击输入示例</a>
79+
</div>
80+
<div class="editor-preview" id="preview">
81+
<div class="title">预览</div>
82+
<div class="body">
83+
<img class="image" id="previewImage"/>
84+
</div>
7485
</div>
7586
</div>
87+
7688
</div>
7789
<script src="../../third-party/jquery-1.10.2.js?20220503"></script>
7890
<script type="text/javascript" src="../../third-party/clipboard/clipboard.js?20220503"></script>
79-
<script type="text/javascript" src="formula.js?20220903"></script>
91+
<script type="text/javascript" src="formula.js?20230822"></script>
8092
<script type="text/javascript">
8193
utils.domReady(function () {
8294
Formula.init();

public/asset/vendor/ueditor/dialogs/formula/formula.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/vendor/ueditor/dialogs/wordimage/wordimage.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@
9797
<div class="wrapper">
9898
<div class="image-info">
9999
<div class="input">
100-
<input type="text" id="fileUrl"/>
100+
<input type="text" id="fileUrl" />
101101
</div>
102102
<div class="copy">
103103
<div id="copyButton">复制路径</div>
104104
</div>
105105
<div class="action">
106106
<div class="save-from-local">
107107
<div>本地选择保存</div>
108-
<input type="file" id="saveFile"/>
108+
<input type="file" id="saveFile" multiple=true/>
109109
</div>
110110
</div>
111111
</div>
@@ -191,10 +191,7 @@
191191
url: res.url,
192192
title: '',
193193
});
194-
if ($('#fileUrl').val().indexOf(file.name) >= 0) {
195-
$('#fileUrl').val(res.url);
196-
$('.image-tip').html('<span style="color:#139213;">转存成功,请提交确认</span>');
197-
}
194+
$('.image-tip').html('<span style="color:#139213;">图片'+imageUrls.length+'('+file.name+')'+'转存成功</span>');
198195
} else {
199196
$('.image-tip').html('上传失败:' + JSON.stringify(res))
200197
}
@@ -205,6 +202,9 @@
205202
$('.image-tip').html('上传失败:' + JSON.stringify(res))
206203
}
207204
});
205+
uploader.on('uploadFinished', function () {
206+
$('.image-tip').html('<span style="color:#139213;">转存成功,请提交确认</span>');
207+
});
208208
utils.domReady(function () {
209209
var options = {};
210210
var callbacks = {};

public/asset/vendor/ueditor/dialogs/wordimage/wordimage.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/vendor/ueditor/themes/default/css/ueditor.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/vendor/ueditor/ueditor.all.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)