Download the PHP package axllent/silverstripe-simplemde-markdown without Composer
On this page you can find all versions of the php package axllent/silverstripe-simplemde-markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download axllent/silverstripe-simplemde-markdown
More information about axllent/silverstripe-simplemde-markdown
Files in axllent/silverstripe-simplemde-markdown
Package silverstripe-simplemde-markdown
Short Description SimpleMDE editor & markdown support for SilverStripe 3
License The MIT License (MIT)
Homepage https://github.com/axllent/silverstripe-simplemde-markdown
Informations about the package silverstripe-simplemde-markdown
SimpleMDE Editor & Markdown for SilverStripe 3
This module adds a field and a data type that allows for Markdown editing in the CMS, and HTML template rendering using the Github Flavoured Markdown parser Parsedown.
It is integrated with the SimpleMDE Markdown Editor for CMS editing (see "Editor limitations" below).
Requirements
- SilverStripe 3.x
Usage
Use the Markdown data type as your fields data type, then use the SimpleMDEEditor field in the CMS for editing.
Page class:
Template:
.htaccess:
The JavaScript and CSS resources needed to show the editor is unfortunately installed in the vendor
folder. By default, SilverStripe blocks all HTTP requests to it (note that we do not want to include the dependencies directly because we want Composer to handle those dependencies). In order to get this to work, we'll need to allow access to those resources.
Add the following line:
above this line:
so that the .htaccess
file would look similar to the following:
Editor limitations:
SimpleMDE has some nice features such as full-page editing/preview, as well as "Side by Side" editing see demo. Unfortunately this doesn't play nice with SilverStripe's CMS as the fullscreen elements are positioned statically. Rather than some ugly hacking, and until someone hopefully finds an elegant solution (pull requests please), fullscreen & side-by-side functionality has been hidden from the toolbar.
All versions of silverstripe-simplemde-markdown with dependencies
erusev/parsedown Version *
etdsolutions/simplemde-markdown-editor Version *