sdkjs-plugins icon indicating copy to clipboard operation
sdkjs-plugins copied to clipboard

plugin code only works in the edit mode

Open capricornstone opened this issue 4 years ago • 3 comments

Hello, I wrote a plugin which can find text in the document editor, code like this: ... Asc.scope.text="sometext"; window.Asc.plugin.callCommand(function() { Api.asc_findText(Asc.scope.text, true, true); }, true); ... when I open a docx file, it only works in the edit mode, does not works in the view mode when I open a pdf file in the document editor, the plugin code does not work in both modes

capricornstone avatar Nov 04 '20 07:11 capricornstone

@askonev Please take a look

ShockwaveNN avatar Nov 05 '20 07:11 ShockwaveNN

Can Api.asc_findText(sometext, true, true); works in the view mode?or some other findText method can works in the view mode? thanks.

capricornstone avatar Nov 24 '20 05:11 capricornstone

Hello @capricornstone! We apologize for the long wait. Your problem is related to the fact that "view mode" is blocking the method you used.

A task 47709 has been created to discuss the solution to this problem.

askonev avatar Nov 27 '20 09:11 askonev