All Projects → robbieaverill → Silverstripe Markdowntextareafield

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 Plugin Admin
Grav Admin Plugin
Stars: ✭ 316 (+5166.67%)
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
Croogo
A CakePHP powered Content Management System
Stars: ✭ 824 (+13633.33%)
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
Couscous
Couscous is good.
Stars: ✭ 807 (+13350%)
Mutual labels:  markdown
Readme2tex
Renders TeXy Math for Github Readmes
Stars: ✭ 826 (+13666.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
Wpseku
WPSeku - Wordpress Security Scanner
Stars: ✭ 791 (+13083.33%)
Mutual labels:  cms
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
Sydes
Lightweight CMF for a simple sites with sqlite database
Stars: ✭ 6 (+0%)
Mutual labels:  cms
Docpress
Documentation website generator
Stars: ✭ 815 (+13483.33%)
Mutual labels:  markdown

Markdown capable TextareaField for Silverstripe CMS

Packagist Packagist Code quality via Scrutinizer CI Build Status

Features

  • Live preview (toggle)
  • Extendable toolbar with common markdown functions
  • Support for both regular markdown and extra functions

Screenshot

Markdown editor screenshot

Credits and Authors

Requirements

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].