Socket
Book a DemoInstallSign in
Socket

knockout-ace

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knockout-ace

Knockout bindings for the ACE embeddable code editor (using brace)

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

knockout-ace

Knockout bindings for the ACE embeddable code editor (using brace)

NPM version

Installation

npm install knockout-ace

N.B. This module peer depends on brace and knockout. It will fail to install if you are not using the same version of knockout and brace as this module. You will need to require in whichever themes and modes you want from brace (see brace documentation)

Example

To use, simply use the ace data binding:

<div data-bind="ace: sourceText, aceOptions: { mode: 'sql', theme: 'textmate' }"></div>
var ko = require('knockout');
require('knockout-ace');
require('brace/theme/textmate');
require('brace/mode/sql');

ko.applyBindings({
  sourceText: 'SELECT * FROM aceModes'
});

License

MIT

FAQs

Package last updated on 03 Oct 2013

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