UNC-Libraries / jquery.xmleditor

jQuery based XML editor plugin.
153 stars 71 forks source link

Search & Find in 'Text' mode #60

Closed RivkaTalalai closed 8 years ago

RivkaTalalai commented 8 years ago

When using the browser's search (CTRL+ F) I find expressions that are visible but not expressions that require scrolling because the elements are generated on the fly after scrolling and do not exist on the page before hand.

This is a pain point when working with large files.

Is there a way around this problem? (I noticed that CTRL + A does manage to retrieve everything, including 'hidden' text..)

Thanks in advance!

bbpennel commented 8 years ago

Hi Rivka. You should be able to resolve this without making any code changes since the "text" mode is built on top of the Ace editor. There is an extension for the editor which adds a search box when the users hits ctrl+f which will find strings that are off the page. If you import this extension on the page where you are using the XML editor, you will get the search box:

https://github.com/ajaxorg/ace-builds/blob/master/src-min/ext-searchbox.js

This is a pretty standard feature though, so I think it would make sense to include it in the suggested configuration.

rosetta-development commented 8 years ago

That did the trick! Thank you so much!