From d2a2c74bbb0fa499d9fda7e706afcb37c0e667a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 31 Oct 2019 20:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Neditor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/neditor/index.wc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/neditor/index.wc b/src/neditor/index.wc index 611e1a6..0a07955 100644 --- a/src/neditor/index.wc +++ b/src/neditor/index.wc @@ -5,9 +5,11 @@
- 大号字体 - 中号字体 - 小号字体 + 6号字体 + 5号字体 + 4号字体 + 3号字体 + 2号字体
@@ -254,7 +256,8 @@ const DEFAULT_TOOLS = [ 'center', 'right', 'link', - 'image' + 'image', + 'topic' ] function renderToolbar(list) { @@ -425,6 +428,10 @@ export default class Neditor { // 这里不作任何处理 break + case 'topic': + this.exec('insertHtml', '#话题#') + break + default: this.__EDITOR__.focus() this.restoreSelection()