New extension WordHighlighter - for highlighting words. (#238)
* init commit for new extension WordHighlighter - for highlighting words. * use `json` for storing configuration, add more configuration options (enable_in_article, enable_logs, case_sensitive, separate_word_search) and refactored & simplified code * fix: try to fix test errors * fix: try to fix tests * fix unnecessary casting to string * fix: try to fix PHPStan errors, mostly: Cannot access offset '...' on mixed. And add missing types. * fix: try to fix "Cannot access offset '...' on mixed." * fix typo in comment * refactor: remove $lineSeparator and replace `explode` with `preg_split` * i18n: fr --------- Co-authored-by: Lukáš Melega <lukas.00.9m@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
parent
f845a6d085
commit
31bbdb55be
15 changed files with 1053 additions and 0 deletions
13
xExtension-WordHighlighter/static/mark.min.js
vendored
Normal file
13
xExtension-WordHighlighter/static/mark.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue