robbieaverill / Silverstripe Markdowntextareafield
Licence: bsd-3-clause
Supercharged textarea with markdown preview for Silverstripe CMS
Projects that are alternatives of or similar to Silverstripe Markdowntextareafield
Tinacms
Open source editor that brings visual editing into React websites. A developer-centric CMS to build contextual and intuitive editing experience without sacrificing code quality.
Stars: ✭ 6,804 (+113300%)
Mutual labels: cms, markdown
Parvula
An extremely simple & flexible CMS generated from flat files with a complete RESTful API —
Stars: ✭ 76 (+1166.67%)
Mutual labels: cms, markdown
Zola
A fast static site generator in a single binary with everything built-in. https://www.getzola.org
Stars: ✭ 7,823 (+130283.33%)
Mutual labels: cms, markdown
Typemill
TYPEMILL is a simple and lightweight Flat-File-CMS for authors and publishers.
Stars: ✭ 150 (+2400%)
Mutual labels: cms, markdown
Grav
Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
Stars: ✭ 13,067 (+217683.33%)
Mutual labels: cms, markdown
Batflat
Lightweight, fast and easy CMS for free. Bootstrap ready. https://batflat.org
Stars: ✭ 95 (+1483.33%)
Mutual labels: cms, markdown
Pico
Pico is a stupidly simple, blazing fast, flat file CMS.
Stars: ✭ 3,494 (+58133.33%)
Mutual labels: cms, markdown
Htmly
Simple and fast databaseless PHP blogging platform, and Flat-File CMS
Stars: ✭ 689 (+11383.33%)
Mutual labels: cms, markdown
Dnn.platform
DNN (formerly DotNetNuke) is the leading open source web content management platform (CMS) in the Microsoft ecosystem.
Stars: ✭ 798 (+13200%)
Mutual labels: cms
Micromark
the smallest commonmark compliant markdown parser that exists; new basis for @unifiedjs (hundreds of projects w/ billions of downloads for dealing w/ content)
Stars: ✭ 793 (+13116.67%)
Mutual labels: markdown
Showdown Htmlescape
Plugin for Showdown to prevent the use of arbitrary HTML and allow only the specific Markdown syntax.
Stars: ✭ 6 (+0%)
Mutual labels: markdown
Solo
🎸 B3log 分布式社区的 Java 博客端节点系统,欢迎加入下一代社区网络。B3log distributed community blog-end node system, welcome to join the next generation community network.
Stars: ✭ 780 (+12900%)
Mutual labels: markdown
Markdown Wasm
Markdown parser and HTML generator implemented in WebAssembly, based on md4c
Stars: ✭ 833 (+13783.33%)
Mutual labels: markdown
Markdown capable TextareaField for Silverstripe CMS
Features
- Live preview (toggle)
- Extendable toolbar with common markdown functions
- Support for both regular markdown and extra functions
Screenshot
Credits and Authors
- Original author - Priit Hansen (@priithansen)
- Maintainer - Robbie Averill (@robbieaverill)
- Silverstripe CMS - http://www.silverstripe.org/
- PHP Markdown - http://michelf.ca/projects/php-markdown/
- Rangy Text Inputs - http://code.google.com/p/rangy/
- Markdown syntax - http://daringfireball.net/projects/markdown/
- Icons - http://www.famfamfam.com/lab/icons/silk/
Requirements
- SilverStripe >= 3.1
- PHP Markdown
Installation
- Use composer to install
composer require robbieaverill/silverstripe-markdowntextareafield:*
- Run
/dev/build?flush=1
Instructions
You can use the MarkdownText
data type for regular markdown or MarkdownTextExtra
for added syntax features:
class Page extends SiteTree {
private static $db = array(
'MarkdownContent' => 'MarkdownTextExtra',
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$markdownfield = MarkdownTextareaField::create('MarkdownContent');
$markdownfield->enableExtra(); // Enables extra syntax support for fields live preview.
$fields->addFieldToTab('Root.Main', $markdownfield);
return $fields;
}
}
Template:
It is also possible to override/use markdown syntax in templates:
<div class="content">
$MarkdownContent <!-- Depending on data type used -->
</div>
<div class="content">
$MarkdownContent.MarkdownAsHTML <!-- Works with both data types, regular markdown -->
</div>
<div class="content">
$MarkdownContent.MarkdownExtraAsHTML <!-- Works with both data types, extended syntax -->
</div>
<div class="content">
<pre>
// Render JSON content
$MarkdownContent.MarkdownAsJS
// or
$MarkdownContent.MarkdownExtraAsJS
</pre>
</div>
Notes
- Bug reports and ideas more than welcome.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].