Fix loading of required fonts when executing InsertAndReplaceContentControls plugin method
This commit is contained in:
Ilya Kirillov
2025-02-17 16:24:17 +03:00
parent 60399e4cb9
commit db002b8b15
4 changed files with 21 additions and 37 deletions

View File

@ -1459,33 +1459,15 @@
if (task.interface)
{
try
{
AscCommon.safePluginEval(value);
}
catch (err)
{
console.error(err);
}
AscCommon.safePluginEval(value);
}
else if (!this.api.isLongAction() && (task.resize || this.api.canRunBuilderScript()))
{
this.api._beforeEvalCommand();
AscFonts.IsCheckSymbols = true;
try
{
commandReturnValue = AscCommon.safePluginEval(value);
}
catch (err)
{
commandReturnValue = undefined;
console.error(err);
}
commandReturnValue = AscCommon.safePluginEval(value);
if (!checkReturnCommand(commandReturnValue))
commandReturnValue = undefined;
AscFonts.IsCheckSymbols = false;
let _t = this;
function onEndScript()