Unable to search in markdown editor
Attempted Debugging
- [X] I have read the debugging page
Searched GitHub Issues
- [X] I have searched GitHub for the issue.
Describe the Scenario
If I'm in edit mode on a large Markdown page and want to modify a specific line in the file, it's impossible to perform a search in the Markdown editor to move directly to the line in question. The search will only be carried out in the preview area, and the editor is not synchronized with the preview line.
is there a solution?
Exact BookStack Version
v24.05
Log Content
No response
Hosting Environment
Home Assistant Community Add-on: Bookstack mariadb-client=10.11.8-r0 nginx=1.26.2-r0 php83=8.3.9-r0
Browser Firefox 129.0.2
@vdomos if you click outside the editor, for example in the header besides the icons or somewhere in that region, before you search it works. editor and preview are synced based on my search.
Tested with Firefox (129.0.2)
Edit: the downside is that you will find matches for your search in the editor (left) and preview (right).
@Sazzels , Arg, I couldn't get your solution to work. In a large Mardown file, the search is only done in the preview. Same thing with Firefox or Chromium
In the last release I added a plaintext option which should work more reliably with browser functionality: https://www.bookstackapp.com/blog/bookstack-release-v25-07/#markdown-plaintext-input
If you still desire full search capabilities in the MD editor (default code mode) feel free to raise a feature request for that.
Since this support request is quite old, I'm going to close this off.