Issue Feature Closed

#88162Persistent search in CodeMirror for t3Editor

Sven Juergens 04/17/19, 11:14 updated 05/07/19, 12:10

Description

Hi,

I use the search within TypoScript templates in the backend very much, but in the context of CodeMirror in TYPO3 9.x the normal browser search works not anymore. Therefore I have to use the CodeMirror search (Ctrl-F / Cmd-F). It would be nice if the search dialog did not disappear again and again. CodeMirror itself has an option that requires only a keyboard shortcut. Here’s an example from https://codemirror.net/demo/search.html with key: “Alt + F“
In order to use this, only the initialisation in typo3/sysext/t3editor/Resources/Public/JavaScript/T3editor.js needs to be adjusted in this way:

in the part “extraKeys”

 extraKeys: {
                "Ctrl-Alt-F": ...
                ...
}

add

 extraKeys: {
                "Alt-F": "findPersistent",
                "Ctrl-Alt-F": ...
                ...
}

would be great to have that in core :)

Reviews 2