更新
This commit is contained in:
parent
8a33d32dad
commit
b20e5dfaed
@ -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}
|
||||
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
@ -5,6 +5,9 @@ table.typecho-list-table {
|
||||
height: 80px;
|
||||
}
|
||||
}
|
||||
.wmd-button-row {
|
||||
height: unset;
|
||||
#wmd-button-row {
|
||||
height: auto;
|
||||
.wmd-button {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user