0.0.1 • Published 5 years ago

spectacle-codemirror v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

spectacle-codemirror

Spectacle CodeMirror is a Spectacle wrapper extension for the react-codemirror component built by Jed Watson. It includes a small amount of CSS that fixes issues with integrating with Spectacle however all the options exposed by the React component are avaliable.

npm.io

Installation

To install simply run:

npm i spectacle-codemirror

Then to import the extension add the following.

import 'codemirror/lib/codemirror.css';
import 'codemirror/mode/javascript/javascript';
import 'spectacle-codemirror/lib/spectacle-codemirror.css';
import SpectacleCodemirror from 'spectacle-codemirror';

License

Copyright (c) 2019 Jonathan Fielding. MIT Licensed.