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 label: Sous-titre
type: writer type: writer
help: optionnel help: optionnel
marks: false marks:
- italic
node: false node: false
chapo: chapo:
label: Chapo label: Chapo
extends: fields/body extends: fields/body
help: optionnel 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 metaTab: tabs/meta

View file

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