Skip to content

Commit

Permalink
修复:编辑器上传图片 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
swling committed Aug 24, 2022
1 parent b7006d0 commit 0db311d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion static/editor/tinymce/plugins/wndimage/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ tinymce.PluginManager.add('wndimage', function(editor, url) {
alert(res.data.msg);
return '';
} else {
return res.data[0].data;
return res.data.data[0];
}
}).catch(err => {
console.log(err);
Expand Down
2 changes: 1 addition & 1 deletion static/editor/tinymce/plugins/wndimage/plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions wnd-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Wnd-Frontend
* Plugin URI: https://github.com/swling/wnd-frontend
* Description: Wnd-Frontend 是一套基于 ajax 交互逻辑的 WordPress 前端基础框架。商业用途需购买授权。<a href="https://github.com/swling/wnd-frontend/releases">更新日志</a>
* Version: 0.9.58.6
* Version: 0.9.58.7
* Author: swling
* Author URI: https://wndwp.com
* Requires PHP: 7.3
Expand All @@ -26,7 +26,7 @@
use Wnd\Model\Wnd_Init;

// 版本
define('WND_VER', '0.9.58.6');
define('WND_VER', '0.9.58.7');

// 定义插件网址路径
define('WND_URL', plugin_dir_url(__FILE__));
Expand Down

0 comments on commit 0db311d

Please sign in to comment.