mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 20:41:40 +02:00
Merge pull request #2121 from andrewzhurov/3629-text-alignment-becomes-undefined-after-pasting-text-from-clipboard
🐛 Fix text alignment becoming undefined on pasting text from clipboard
This commit is contained in:
commit
f301ec5d2f
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue