Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin code only works in the edit mode #131

Open
capricornstone opened this issue Nov 4, 2020 · 3 comments
Open

plugin code only works in the edit mode #131

capricornstone opened this issue Nov 4, 2020 · 3 comments
Assignees
Labels
confirmed-bug Issues with confirmed bugs

Comments

@capricornstone
Copy link

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

@ShockwaveNN ShockwaveNN transferred this issue from ONLYOFFICE/DocumentServer Nov 5, 2020
@ShockwaveNN
Copy link
Contributor

@askonev Please take a look

@capricornstone
Copy link
Author

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

@askonev
Copy link
Member

askonev commented Nov 27, 2020

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.

@ShockwaveNN ShockwaveNN added the confirmed-bug Issues with confirmed bugs label Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs
Projects
None yet
Development

No branches or pull requests

3 participants