From: Dan Brown Date: Mon, 8 May 2023 11:01:52 +0000 (+0100) Subject: Fixed added padding around hr tags in details blocks X-Git-Tag: v23.05.1~1^2~7 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/b5cc0a8e38848043295e3d1960b5a347432532dd Fixed added padding around hr tags in details blocks Due to manual handling & wrapping of non-block content in details block not taking hr elements into account. For #3963 --- diff --git a/resources/js/wysiwyg/config.js b/resources/js/wysiwyg/config.js index a0e7156ee..37b810718 100644 --- a/resources/js/wysiwyg/config.js +++ b/resources/js/wysiwyg/config.js @@ -268,7 +268,7 @@ export function build(options) { '-doc-root[doc-root|#text]', '-li[details]', '+code-block[pre]', - '+doc-root[p|h1|h2|h3|h4|h5|h6|blockquote|code-block|div]', + '+doc-root[p|h1|h2|h3|h4|h5|h6|blockquote|code-block|div|hr]', ].join(','), plugins: gatherPlugins(options), contextmenu: false, diff --git a/resources/js/wysiwyg/util.js b/resources/js/wysiwyg/util.js index 68b6aabfc..2422da781 100644 --- a/resources/js/wysiwyg/util.js +++ b/resources/js/wysiwyg/util.js @@ -14,4 +14,5 @@ export const blockElementTypes = [ 'ul', 'ol', 'table', + 'hr', ];