From be6b8cd1311c0737e90b171820e29fb8971bba61 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 7 Feb 2020 17:12:43 +1000 Subject: [PATCH] don't filter strong/em; sort list of tags --- qt/ts/src/editor.ts | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/qt/ts/src/editor.ts b/qt/ts/src/editor.ts index e0cf8709b..f3eba5c4a 100644 --- a/qt/ts/src/editor.ts +++ b/qt/ts/src/editor.ts @@ -424,25 +424,27 @@ for (const tag of TAGS_WITHOUT_ATTRS) { } TAGS_WITHOUT_ATTRS = [ + "B", + "BLOCKQUOTE", + "CODE", + "DD", + "DL", + "DT", + "EM", "H1", "H2", "H3", - "LI", - "UL", - "OL", - "BLOCKQUOTE", - "CODE", - "PRE", - "TABLE", - "DD", - "DT", - "DL", - "B", - "U", "I", - "RUBY", - "RT", + "LI", + "OL", + "PRE", "RP", + "RT", + "RUBY", + "STRONG", + "TABLE", + "U", + "UL", ]; for (const tag of TAGS_WITHOUT_ATTRS) { allowedTagsExtended[tag] = { attrs: [] };