add html mode
This commit is contained in:
parent
72a84c9283
commit
be447667cc
2 changed files with 28 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
<?= $page->chapo() ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?= $page->body() ?>
|
||||
<?= $page->htmlBody()->kt() ?>
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue