mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 20:28:54 +02:00
Added an "twig" lines mode, where the label lines are processed via a sandboxed twig.
This commit is contained in:
parent
c2db827c9d
commit
11225eb9cc
11 changed files with 548 additions and 7 deletions
|
@ -83,6 +83,10 @@ function findLabelForPlaceholder(search)
|
|||
}
|
||||
}
|
||||
|
||||
//Dont escape text inside of twig blocks
|
||||
CKEDITOR.config.protectedSource.push(/\{\{[\s\S]*?\}\}/g);
|
||||
CKEDITOR.config.protectedSource.push(/\{\%[\s\S]*?%\}/g);
|
||||
|
||||
CKEDITOR.plugins.add('partdb_label', {
|
||||
hidpi: true,
|
||||
icons: 'placeholder',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue