diff --git a/typecho/editor/joe.editor.css b/typecho/editor/joe.editor.css index 3fd0cf1..ae2fd3e 100644 --- a/typecho/editor/joe.editor.css +++ b/typecho/editor/joe.editor.css @@ -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} diff --git a/typecho/editor/joe.editor.js b/typecho/editor/joe.editor.js index 3b3fed5..35194fe 100644 --- a/typecho/editor/joe.editor.js +++ b/typecho/editor/joe.editor.js @@ -1,9 +1,18 @@ $(function () { $('#wmd-editarea textarea').attr('placeholder', '请输入文章内容...(支持图片粘贴上传)') $('#wmd-button-bar .wmd-edittab').remove() - $('#wmd-button-row').html(` -
  • + $('#wmd-button-row .wmd-spacer').remove() -
  • - `) + /* 增加自定义功能 */ + const items = [ + { + title: '回复可见', + id: 'wmd-hide-button' + } + ] + + items.forEach(_ => { + let item = `
  • ` + $('#wmd-button-row').append(item) + }) }) diff --git a/typecho/editor/joe.editor.scss b/typecho/editor/joe.editor.scss index f3b3dec..77013d2 100644 --- a/typecho/editor/joe.editor.scss +++ b/typecho/editor/joe.editor.scss @@ -5,6 +5,9 @@ table.typecho-list-table { height: 80px; } } -.wmd-button-row { - height: unset; +#wmd-button-row { + height: auto; + .wmd-button { + + } } \ No newline at end of file