mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
@@ -53,8 +53,10 @@ $(function () {
|
||||
shade: [0.1, '#fff'] // 0.1 透明度的白色背景
|
||||
});
|
||||
} else if ($state === "success") {
|
||||
if ($res.errcode === 0) {
|
||||
var value = '';
|
||||
// if ($res.errcode === 0) {
|
||||
// var value = '';
|
||||
if ($res[0].errcode === 0) {
|
||||
var value = '';
|
||||
window.editor.insertValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,8 +251,11 @@ $(function () {
|
||||
shade: [0.1, '#fff'] // 0.1 透明度的白色背景
|
||||
});
|
||||
} else if ($state === "success") {
|
||||
if ($res.errcode === 0) {
|
||||
var value = '';
|
||||
// if ($res.errcode === 0) {
|
||||
// var value = '';
|
||||
// 3xxx 20240602
|
||||
if ($res[0].errcode === 0) {
|
||||
var value = '';
|
||||
window.editor.insertValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,10 +77,11 @@ $(function () {
|
||||
shade: [0.1, '#fff'] // 0.1 透明度的白色背景
|
||||
});
|
||||
} else if ($state === "success") {
|
||||
if ($res.errcode === 0) {
|
||||
|
||||
// if ($res.errcode === 0) {
|
||||
if ($res[0].errcode === 0) {
|
||||
var range = window.editor.getSelection();
|
||||
window.editor.insertEmbed(range.index, 'image', $res.url);
|
||||
// window.editor.insertEmbed(range.index, 'image', $res.url);
|
||||
window.editor.insertEmbed(range.index, 'image', $res[0].url);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user