mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 06:58:57 +00:00
🐛 Fix text alignment becoming undefined on pasting text from clipboard
Signed-off-by: Andrei Zhurau <zhurov.andrew@gmail.com>
This commit is contained in:
parent
424e9faa8e
commit
732755066e
@ -378,10 +378,7 @@ export function insertText(state, text, attrs, inlineStyles) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
blockArray = blockArray.map((b) => {
|
blockArray = blockArray.map((b) => {
|
||||||
if (b.getText() === "") {
|
return mergeBlockData(b, attrs);
|
||||||
return mergeBlockData(b, attrs)
|
|
||||||
}
|
|
||||||
return b;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const fragment = BlockMapBuilder.createFromArray(blockArray);
|
const fragment = BlockMapBuilder.createFromArray(blockArray);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user