A simple webpack bundle for prosemirror to get started
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
.gitignore
README.md
html_snippet.html
package-lock.json
package.json
webpack.config.js

README.md

prosemirror-webpack-project

A bare minimal webpack project to bundle a prosemirror to get started

prosemirror-example-setup npm module is not a turn-key example for prosemirror because it is not bundled.

This project (as of May 2018) creates a simple webpack bundle that can be included in an html file in a single script tag.

Install:

npm install

Building:

Run:

./node_modules/bin/webpack

This will create a file dist/bundle.js

Include it as a script tag in your html file.

Sources:

The example minimal editor in http://prosemirror.net/examples/basic/ is placed in src/editor.js

Notes:

  • Add html_snippet.html to your html body to create divs with editor and content ids.

  • Note, the editor will appear on your page, but in an awkward fashion. You need to include CSS files.