netlify-cms-widget-simplemde

1.0.3 • Public • Published

netlify-cms-widget-simplemde

Replacement of NetlifyCMS (Decap CMS) Markdown widget


Quick Start

Add below script code after Netlify CMS script tag,

<script src="https://cdn.jsdelivr.net/npm/netlify-cms-widget-simplemde/dist/main.min.js"></script>
<!-- OR use unpkg CDN -->
<!-- <script src="https://www.unpkg.com/netlify-cms-widget-simplemde"></script> -->
<script>
  CMS.registerWidget("simplemde", SimpleMDEControl, SimpleMDEPreview);
</script>

Then, change your original "widget": "markdown" into "widget": "simplemde".

Just so simple, I tested Chinese and works well. (Old markdown widget cannot input Chinese characters fluently.)

Any feature or suggests are welcomed!

Purpose

I made this widget because the original rich-text editor is not doing well with Chinese characters (similar bugs for IME). The bug has not been solved until the CMS's name change.

For example this, XD. ianstormtaylor/slate issue #5066

Therefore, many features about rich text editing are NOT added into my editor. Markdown is the first.

Package Sidebar

Install

npm i netlify-cms-widget-simplemde

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

3.65 MB

Total Files

11

Last publish

Collaborators

  • spark1e