BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.43k stars 1.94k forks source link

Unable to search in markdown editor #5186

Open vdomos opened 2 months ago

vdomos commented 2 months ago

Attempted Debugging

Searched GitHub Issues

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

Sazzels commented 2 months ago

@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)

grafik

Edit: the downside is that you will find matches for your search in the editor (left) and preview (right).

vdomos commented 2 months ago

@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