This commit is contained in:
haoouba 2021-02-03 20:11:16 +08:00
parent 8a33d32dad
commit b20e5dfaed
3 changed files with 19 additions and 7 deletions

View File

@ -1 +1 @@
table.typecho-list-table textarea[name='fields[thumb]'],table.typecho-list-table textarea[name='fields[abstract]']{width:100%;height:80px}.wmd-button-row{height:unset}
table.typecho-list-table textarea[name='fields[thumb]'],table.typecho-list-table textarea[name='fields[abstract]']{width:100%;height:80px}#wmd-button-row{height:auto}

View File

@ -1,9 +1,18 @@
$(function () {
$('#wmd-editarea textarea').attr('placeholder', '请输入文章内容...(支持图片粘贴上传)')
$('#wmd-button-bar .wmd-edittab').remove()
$('#wmd-button-row').html(`
<li>
$('#wmd-button-row .wmd-spacer').remove()
</li>
`)
/* 增加自定义功能 */
const items = [
{
title: '回复可见',
id: 'wmd-hide-button'
}
]
items.forEach(_ => {
let item = `<li class="wmd-button" id="${_.id}" title="${_.title}">啊</li>`
$('#wmd-button-row').append(item)
})
})

View File

@ -5,6 +5,9 @@ table.typecho-list-table {
height: 80px;
}
}
.wmd-button-row {
height: unset;
#wmd-button-row {
height: auto;
.wmd-button {
}
}