From 4861a40b9eb966787f9ebd3c044e84963f175baa Mon Sep 17 00:00:00 2001 From: joyqi Date: Tue, 8 Jun 2021 11:47:03 +0800 Subject: [PATCH] fix #1100 --- admin/css/style.css | 2 + admin/editor-js.php | 5 +- admin/js/purify.js | 1 + admin/src/js/purify.js | 1356 ++++++++++++++++++++++++ admin/src/scss/components/_editor.scss | 9 + 5 files changed, 1371 insertions(+), 2 deletions(-) create mode 100644 admin/js/purify.js create mode 100644 admin/src/js/purify.js diff --git a/admin/css/style.css b/admin/css/style.css index 07cd285e97..da83697c3e 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -826,6 +826,8 @@ a.operate-reply { color: #545c30; } #wmd-preview .summary:after { display: block; margin: 2em 0; background: #FFF9E8; color: #cf9900; font-size: .85714em; text-align: center; content: "- more -"; } +#wmd-preview .embed { border: 1px solid #ccc; height: 40px; overflow: hidden; line-height: 40px; text-align: center; font-size: 12px; color: #777; } + #wmd-preview table { width: 100%; } #wmd-preview table th, #wmd-preview table td { border: 1px solid #DDD; padding: 5px 8px; word-break: break-all; } diff --git a/admin/editor-js.php b/admin/editor-js.php index 5c14307f62..cc625ca611 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -3,6 +3,7 @@ +