mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Lexical: Merged custom paragraph node, removed old format/indent refs
Start of work to merge custom nodes into lexical, removing old unused format/indent core logic while extending common block elements where possible.
This commit is contained in:
@ -327,9 +327,6 @@ function wrapContinuousInlines(
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
const node = nodes[i];
|
||||
if ($isBlockElementNode(node)) {
|
||||
if (textAlign && !node.getFormat()) {
|
||||
node.setFormat(textAlign);
|
||||
}
|
||||
out.push(node);
|
||||
} else {
|
||||
continuousInlines.push(node);
|
||||
@ -338,7 +335,6 @@ function wrapContinuousInlines(
|
||||
(i < nodes.length - 1 && $isBlockElementNode(nodes[i + 1]))
|
||||
) {
|
||||
const wrapper = createWrapperFn();
|
||||
wrapper.setFormat(textAlign);
|
||||
wrapper.append(...continuousInlines);
|
||||
out.push(wrapper);
|
||||
continuousInlines = [];
|
||||
|
Reference in New Issue
Block a user