更新
This commit is contained in:
parent
fe479844bc
commit
840b1989b2
@ -9,10 +9,10 @@ class Editor
|
|||||||
{
|
{
|
||||||
public static function edit()
|
public static function edit()
|
||||||
{
|
{
|
||||||
echo "<link rel='stylesheet' href='" . Helper::options()->themeUrl . '/typecho/editor/joe.editor.css?v=666' . "'>";
|
echo "<link rel='stylesheet' href='" . Helper::options()->themeUrl . '/typecho/editor/joe.editor.css' . "'>";
|
||||||
echo "<script src='" . Helper::options()->themeUrl . '/typecho/editor/joe.owo.js?v=666' . "'></script>";
|
echo "<script src='" . Helper::options()->themeUrl . '/typecho/editor/joe.extend.js' . "'></script>";
|
||||||
echo "<script src='" . Helper::options()->themeUrl . '/typecho/editor/joe.extend.js?v=666' . "'></script>";
|
echo "<script src='" . Helper::options()->themeUrl . '/typecho/editor/joe.owo.js' . "'></script>";
|
||||||
echo "<script src='" . Helper::options()->themeUrl . '/typecho/editor/joe.editor.js?v=666' . "'></script>";
|
echo "<script src='" . Helper::options()->themeUrl . '/typecho/editor/joe.editor.js' . "'></script>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
/* 获取主题当前版本号 */
|
/* 获取主题当前版本号 */
|
||||||
function _getVersion()
|
function _getVersion()
|
||||||
{
|
{
|
||||||
return "5.2.5";
|
return "5.2.6";
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 判断是否是手机 */
|
/* 判断是否是手机 */
|
||||||
|
@ -107,16 +107,11 @@ var JoeOwO = /*#__PURE__*/ (function () {
|
|||||||
/* 点击表情,向文本框插入内容 */
|
/* 点击表情,向文本框插入内容 */
|
||||||
|
|
||||||
var items = contain + ' .scroll .item';
|
var items = contain + ' .scroll .item';
|
||||||
var textarea = $(this.options.target)[0];
|
var textarea = $(this.options.target);
|
||||||
$(items).on('click', function () {
|
$(items).on('click', function () {
|
||||||
var text = $(this).attr('data-text');
|
textarea.insertContent($(this).attr('data-text'));
|
||||||
var cursorPos = textarea.selectionEnd;
|
|
||||||
var areaValue = textarea.value;
|
|
||||||
textarea.value = areaValue.slice(0, cursorPos) + text + areaValue.slice(cursorPos);
|
|
||||||
textarea.focus();
|
|
||||||
});
|
});
|
||||||
/* 默认激活第一个 */
|
/* 默认激活第一个 */
|
||||||
|
|
||||||
$(barItem).first().click();
|
$(barItem).first().click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user