mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 03:32:24 +10:00
feat: nested toggle block (#671)
* feat: nested toggle block * fix: md export * fix detailsButton icon alignment --------- Co-authored-by: Philipinho <16838612+Philipinho@users.noreply.github.com>
This commit is contained in:
@ -132,6 +132,9 @@ export const Details = Node.create<DetailsOptions>({
|
||||
}
|
||||
|
||||
const slice = state.doc.slice(range.start, range.end);
|
||||
|
||||
if(slice.content.firstChild.type.name === "detailsSummary") return false;
|
||||
|
||||
if (
|
||||
!state.schema.nodes.detailsContent.contentMatch.matchFragment(
|
||||
slice.content,
|
||||
|
||||
Reference in New Issue
Block a user