scossar / prosemirror-wordpress-example

An example plugin that shows how to use a ProseMirror editor in WordPress.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordPress ProseMirror Example

Alt text

This plugin is an example of how to use a ProseMirror editor in a WordPress project.

The plugin will create a meta box on the Edit Post page with an editor instance which saves to post meta.

Tell me more!

ProseMirror is written in JavaScript with features from ES6. If you'd like to customize the JavaScript code, install Node.js.

In the command line, install JavaScript dependencies

npm install

I've included a build script, which will transpile the source in src/index.js to dist/index.js, and recompile when a file changes. Run this script:

node build.js

About

An example plugin that shows how to use a ProseMirror editor in WordPress.


Languages

Language:JavaScript 99.6%Language:PHP 0.4%