add html mode

This commit is contained in:
isUnknown 2025-02-17 17:57:53 +01:00
parent 72a84c9283
commit be447667cc
2 changed files with 28 additions and 3 deletions

View file

@ -19,11 +19,36 @@ tabs:
label: Sous-titre
type: writer
help: optionnel
marks: false
marks:
- italic
node: false
chapo:
label: Chapo
extends: fields/body
help: optionnel
body: fields/body
body:
extends: fields/body
when:
htmlMode: false
htmlBody:
label: Corps
type: textarea
buttons:
- headlines
- bold
- italic
- link
when:
htmlMode: true
paramsTab:
label: Paramètres
fields:
htmlMode:
label: Mode HTML
type: toggle
width: 1/3
help: |
Actif : le code HTML du corps sera exécuté.
metaTab: tabs/meta

View file

@ -29,7 +29,7 @@
<?= $page->chapo() ?>
</div>
<?php endif ?>
<?= $page->body() ?>
<?= $page->htmlBody()->kt() ?>
</div>
</article>
</main>