fix(richtext): improvement to the Rich Text Editor #5446 (#5897)

This commit is contained in:
Kolja Markwardt
2021-10-28 16:45:27 +02:00
committed by GitHub
parent f80c07da27
commit 06c7e251ce
2 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,7 @@ function CloseBlock({ defaultType }) {
return next();
}
if (startBlock.type !== defaultType) {
return editor.setBlocks(defaultType);
editor.setBlocks(defaultType);
}
return next();
},