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

CTRL+F in a text file does not seem to work any more #5198

Closed
hugoroy opened this issue May 31, 2017 · 4 comments
Closed

CTRL+F in a text file does not seem to work any more #5198

hugoroy opened this issue May 31, 2017 · 4 comments

Comments

@hugoroy
Copy link

hugoroy commented May 31, 2017

Steps to reproduce

  1. Go to a text file and open it with the Nextcloud server web interface editor (url like https://nextcloud.example.org/index.php/apps/files/?dir=/directory&fileid=11118#editor )
  2. Press CTRL+F (Chrome, but apparently bug also with other browsers)
  3. Nothing happens

Expected behaviour

  1. Go to a text file and open it with the editor
  2. Press CTRL+F
  3. Get a "find" feature (either the browser's built-in find feature, or a custom Nextcloud's web interface editor find feature)

Actual behaviour

The editor seems to hijack the CTRL+F binding and prevents the browser built-in find feature from working.

The editor does not replace this with its own find feature.

Should be easy enough to reproduce, tested with very different configs by different people who could reproduce (Windows, Mac, etc.).

@hugoroy hugoroy changed the title CTRL +F in a text file does not seem to work any more CTRL+F in a text file does not seem to work any more May 31, 2017
@nickvergessen
Copy link
Member

Yeah the editor brings up it's own search for me:
bildschirmfoto vom 2017-06-01 10-38-56

However, if you have an issue with this or think it should change, please open your issue in the repo of the app: https://github.com/nextcloud/files_texteditor

@hugoroy
Copy link
Author

hugoroy commented Jun 1, 2017

Please don't close this like this.

It does not bring the editor own search for me. I did not remember there was such a feature in the editor of the web interface of nextcluod itself. Otherwise I wouldn't have filed this issue at all if the "find" feature was working in any way. (See the bug report below, "Steps to reproduce" point 3 "Nothing happens" ie there is no editor find feature appearing).

Bug report updated above to reflect the fact that there is no editor find feature working.

Edited: didn't see the comment below the screenshot. See nextcloud/files_texteditor#39

@e-alfred
Copy link

e-alfred commented Jul 10, 2017

I can confirm that the text editor does not open a search box if CTRL +F is pressed. Here is the error log from the browser:

The resource from “https://server/index.php/apps/files/ext-searchbox.js” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).

The problem appears using Nextcloud 12 with Firefox 54.0.1. The problem does not happen in Vivaldi 1.10, here the search bar of the browser is opened and works well.

@agrudsky
Copy link

I am also getting this issue. Upon checking the Chrome dev console, the problem appears to be an incorrect MIME type for the searchbox:

Refused to execute script from 'https://nextcloud.server.com/apps/files/ext-searchbox.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

This error is thrown every time I hit CTRL+F in a text file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants