]> BookStack Code Mirror - bookstack/commitdiff
Fixed added padding around hr tags in details blocks
authorDan Brown <redacted>
Mon, 8 May 2023 11:01:52 +0000 (12:01 +0100)
committerDan Brown <redacted>
Mon, 8 May 2023 11:01:52 +0000 (12:01 +0100)
Due to manual handling & wrapping of non-block content in details block
not taking hr elements into account.
For #3963

resources/js/wysiwyg/config.js
resources/js/wysiwyg/util.js

index a0e7156ee6866bdbecdbe9dd43f057aa26b228ff..37b810718f8a2a5ee77a6689c907c35113124cc3 100644 (file)
@@ -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,
index 68b6aabfce54bc4c632629ac876db60fa2d1df82..2422da7813ebbbc493b2c9c63a480444e6553ebb 100644 (file)
@@ -14,4 +14,5 @@ export const blockElementTypes = [
     'ul',
     'ol',
     'table',
+    'hr',
 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.