Skip to content

NOW MANAGED ON CODEBERG

Fixed added padding around hr tags in details blocks

Dan Brownb5cc0a8e3884
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',
];