No description
  • JavaScript 69.9%
  • CSS 14.8%
  • HTML 14.4%
  • Shell 0.9%
Find a file
Michael Abashian 4ee3223f50
Merge pull request #4 from mabashian/upgrade-angular-jquery
Upgrades angular to 1.7.9 and jquery to 3.5.1
2020-06-15 17:41:49 -04:00
app Changes post Tower implementation. Fixed css z-index issues. Made file naming consistent. 2014-02-15 19:00:16 -05:00
lib iife-ify 2016-07-27 13:04:06 -04:00
scripts Initial commit 2014-02-15 04:31:19 -05:00
.gitignore Removed bower_components from repo. 2014-02-15 05:13:38 -05:00
.jshintrc Initial commit 2014-02-15 04:31:19 -05:00
bower.json update to release 1.0.4 2016-07-25 17:06:15 -04:00
index.js iife-ify 2016-07-27 13:04:06 -04:00
LICENSE.md One last license update. 2014-02-15 19:16:59 -05:00
package.json Upgrades angular to 1.7.9 and jquery to 3.5.1 2020-06-15 17:40:35 -04:00
README.md Update license info. 2014-02-15 19:15:16 -05:00

AngularCodeMirror

Incorporate CodeMirror into your AngularJS app. Presents the editor in a resizable, draggable modal dialog styled with Twitter Bootstrap. Pass in any valid CodeMirror options to make the editor fit your app needs.

Installation:

bower install angular-codemirror

Example App:

With Node.js installed, you can run the sample app locally. Clone the repo to a local projects directory, install package dependencies, and then run with the included server:

cd projects
git clone git@github.com:chouseknecht/angular-codemirror.git
cd angular-codemirror
bower install
node ./scripts/web-server.js

Point your browser to http://localhost:8000/app/index.html. Click the code editor link.

How To:

If you installed with Bower, then all the dependencies will exist in bower_components. See app/index.html for a template of how to include all the needed .js and .css files. If you want to install dependencies manually, review bower.json for a list of what's needed.

Check the CodeMirror documentation to see what needs to be included for the mode and options you choose. Again, if you installed with Bower, then everything you need should be found under bower_components.

Incorporate into your Angular app by following the example in app/js/sampleApp.js.