Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

en-codemirror

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

en-codemirror

The default blueprint for ember-cli addons.

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 22 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc