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
|
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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue