processwire:markdown
This is an old revision of the document!
tentative 1
- 1 dl & unzip http://modules.processwire.com/modules/inputfield-ace-editor/ in site/modules/
- Modules → Refresh
- Modules → Install → InputFieldAceEditor
- Setup → Fields → add new
- Field Setup
- basic : textarea
- details : html entity encoders (htmlspecialchars), inputfield type : AceEditor, content type : Markup/HTML with image management
front
on dirait qu'il y a par défaut un parser markdown : TextformatterMarkdownExtra
<?php // includes $markdown_module_path = "../../wire/modules/Textformatter/TextformatterMarkdownExtra/"; require $markdown_module_path."parsedown/Parsedown.php"; require $markdown_module_path."parsedown-extra/ParsedownExtra.php"; // declaring parser $Extra = new ParsedownExtra(); //use echo $Extra->text($page->Markdown); ?>
processwire/markdown.1454936178.txt.gz · Last modified: 2016/02/08 13:56 by leo