This commit is contained in:
haoouba 2021-03-27 16:24:32 +08:00
parent 93bfd92d7a
commit 174b2e75ce
4 changed files with 1162 additions and 1162 deletions

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */
function _getVersion()
{
return "6.1.2";
return "6.1.3";
};
/* 判断是否是手机 */

View File

@ -1,6 +1,6 @@
{
"name": "typecho-joe-next",
"version": "6.1.2",
"version": "6.1.3",
"description": "A Theme Of Typecho",
"main": "index.php",
"keywords": [

View File

@ -13978,7 +13978,7 @@
})
});
$('.cm-mainer').prepend(cm.dom);
$('form[name="write_post"]').on('submit', () => $('#text').val(cm.state.doc.toString()));
$('#text')[0].form && $('#text')[0].form.addEventListener('submit', () => $('#text').val(cm.state.doc.toString()));
this.cm = cm;
} catch (e) {
console.error('Init_Editor Error: ' + e);

View File

@ -513,7 +513,7 @@ class Joe extends JoeAction {
})
});
$('.cm-mainer').prepend(cm.dom);
$('form[name="write_post"]').on('submit', () => $('#text').val(cm.state.doc.toString()));
$('#text')[0].form && $('#text')[0].form.addEventListener('submit', () => $('#text').val(cm.state.doc.toString()));
this.cm = cm;
} catch (e) {
console.error('Init_Editor Error: ' + e);