1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Ensured wysiwyg details contents are wrapped in block elements

Fixes issue where inline-only content would disappear when unwrapping a
details block element.
This commit is contained in:
Dan Brown
2022-07-23 11:18:03 +01:00
parent a9ee2e6889
commit f86bb27a83
3 changed files with 37 additions and 5 deletions

View File

@ -235,7 +235,7 @@ export function build(options) {
"-doc-root[doc-root|#text]",
"-li[details]",
"+code-block[pre]",
"+doc-root[code-block]"
"+doc-root[p|h1|h2|h3|h4|h5|h6|blockquote|code-block|div]"
].join(','),
plugins: gatherPlugins(options),
contextmenu: false,