Commit 1898b81e authored by GoshaZotov's avatar GoshaZotov

fix bug: copy/paste word to cell(shapes) do not load all fonts

parent 7b92bec7
......@@ -2960,8 +2960,17 @@
var coverDocument = documentContentBounds.getBounds(0,0, documentContent);
this._parseChildren(coverDocument);
var newFonts = this.fontsNew;
if(pasteData.fonts && pasteData.fonts.length)
{
newFonts = {};
for(var i = 0; i < pasteData.fonts.length; i++)
{
newFonts[pasteData.fonts[i].name] = 1;
}
}
this.aResult.props.fontsNew = this.fontsNew;
this.aResult.props.fontsNew = newFonts;
this.aResult.props.rowSpanSpCount = 0;
this.aResult.props.cellCount = coverDocument.width;
this.aResult.props._images = pasteData.images && pasteData.images.length ? pasteData.images : this.aResult.props._images;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment