Bonsoir,
Alors dans la config de l'editeur tu ajoute cette ligne :
template_external_list_url : "lists/template_list.js",
Le fichier template_list.js
1 2 3 4 5
| var tinyMCETemplateList = [
// Name, URL, Description
["News un Logo a droite", "templates/newslogo.htm", "Une simple news plus une image."],
["Layout", "example_data/templates/layout1.htm", "HTML Layout."]
]; |
Le fichier .htm
1 2 3 4 5 6
| <div class="editorial">
<div style="float: right; padding-left: 6px; text-align: center;">
Image + Link
</div>
Texte de la news
</div> |
Voila
Partager