0.1.0 • Published 7 years ago

en-codemirror v0.1.0

Weekly downloads
3
License
MIT
Repository
-
Last release
7 years ago

en-codemirror

A simple CodeMirror component for ember.js.

Installation

ember install en-codemirror

You can use it like so:

  {{en-codemirror
    value=value
    onChange=(action (mut value))
    }}

When the content is changed, the component sends the onChange action with the new value. You can use that however you want.

You can also pass a readOnly flag that will disable the editor.

Loading Modes

en-codemirror loads with the JavaScript mode as default. There's a select input at the top which the user can use to switch to a different mode.

This addon does not bundle the modes with itself. Instead, it lazy loads modes using CodeMirror's autoLoadMode function. This keeps your vendor.js file's size down.

Contributing

Please report any issues or bugs you find. Feel free to send in PRs too.

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago