Project

General

Profile

Actions

Feature #88162

closed

Persistent search in CodeMirror for t3Editor

Added by Sven Juergens about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-04-17
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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


Files

cmd-f--and--ctrl-f--on-mac.mp4 (700 KB) cmd-f--and--ctrl-f--on-mac.mp4 Preview of Ctrl+f and Cmd+f on a mac Sven Juergens, 2019-04-17 13:37
88162_codemirror-overlaybug.gif (114 KB) 88162_codemirror-overlaybug.gif Josef Glatz, 2019-04-18 15:49
Actions

Also available in: Atom PDF