HI Team,
I got this below error when i click on the keyword in the plugin.
ReferenceError: f is not defined
at eval (eval at (eval at (https://20.235.43.6/8.1.3-4/sdkjs/word/sdk-all-min.js:1:1)), :2:157)
at eval (eval at (eval at (https://20.235.43.6/8.1.3-4/sdkjs/word/sdk-all-min.js:1:1)), :2:193)
at eval (eval at (https://20.235.43.6/8.1.3-4/sdkjs/word/sdk-all-min.js:1:1), :3:8)
at a.AscCommon.VCc (https://20.235.43.6/8.1.3-4/sdkjs/word/sdk-all-min.js:1181:321)
at f.kff (https://20.235.43.6/8.1.3-4/sdkjs/word/sdk-all.js:14247:252)
at f.Tvh (https://20.235.43.6/8.1.3-4/sdkjs/word/sdk-all.js:14246:310)
at h (https://20.235.43.6/8.1.3-4/sdkjs/word/sdk-all.js:14220:352)
this is my below clode
const insertTextAtCursor = (text: string) => {
if (pluginData) {
pluginData.scope.text = text;
pluginData.plugin.callCommand(()=>{
var oDocument = Api.GetDocument();
var oParagraph = Api.CreateParagraph();
oParagraph.AddText(pluginData.scope.text);
oDocument.InsertContent([oParagraph]);
}, false,false,()=>{
console.log(“callback”);
});
}
};