react-ace
A react component for Ace Editor
Last updated 9 years ago by securingsincity .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install react-ace 
SYNC missed versions from official npm registry.

React-Ace

logo

Backers on Open Collective Sponsors on Open Collective Greenkeeper badge

npm version CDNJS Coverage Status

A set of react components for Ace

NOTE FOR VERSION 8! : We have stopped support for Brace and now use Ace-builds. Please read the documentation on how to migrate. Examples are being updated.

DEMO of React Ace

DEMO of React Ace Split Editor

DEMO of React Ace Diff Editor

Install

npm install react-ace ace-builds

yarn add react-ace ace-builds

Basic Usage

import React from "react";
import { render } from "react-dom";
import AceEditor from "react-ace";

import "ace-builds/src-noconflict/mode-java";
import "ace-builds/src-noconflict/theme-github";
import "ace-builds/src-noconflict/ext-language_tools";

function onChange(newValue) {
  console.log("change", newValue);
}

// Render editor
render(
  <AceEditor
    mode="java"
    theme="github"
    onChange={onChange}
    name="UNIQUE_ID_OF_DIV"
    editorProps={{ $blockScrolling: true }}
  />,
  document.getElementById("example")
);

Examples

Checkout the example directory for a working example using webpack.

Documentation

Ace Editor

Split View Editor

Diff Editor

How to add modes, themes and keyboard handlers

Frequently Asked Questions

Migrate to version 8

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

Current Tags

  • 12.0.0                                ...           latest (5 months ago)

101 Versions

  • 12.0.0                                ...           5 months ago
  • 11.0.1                                ...           8 months ago
  • 10.1.0                                ...           3 years ago
  • 10.0.0                                ...           3 years ago
  • 9.5.0                                ...           3 years ago
  • 9.4.4                                ...           3 years ago
  • 9.4.5                                ...           3 years ago
  • 9.4.3                                ...           3 years ago
  • 9.4.1                                ...           3 years ago
  • 9.4.0                                ...           4 years ago
  • 9.3.0                                ...           4 years ago
  • 9.2.1                                ...           4 years ago
  • 9.2.0                                ...           4 years ago
  • 9.1.4                                ...           4 years ago
  • 9.1.3                                ...           4 years ago
  • 9.1.2                                ...           4 years ago
  • 9.1.1                                ...           4 years ago
  • 9.1.0                                ...           4 years ago
  • 9.0.0                                ...           4 years ago
  • 8.1.0                                ...           5 years ago
  • 8.0.0                                ...           5 years ago
  • 7.0.5                                ...           5 years ago
  • 7.0.4                                ...           5 years ago
  • 7.0.2                                ...           5 years ago
  • 7.0.1                                ...           5 years ago
  • 7.0.0                                ...           5 years ago
  • 6.6.0                                ...           5 years ago
  • 6.5.0                                ...           6 years ago
  • 6.4.0                                ...           6 years ago
  • 6.3.2                                ...           6 years ago
  • 6.3.1                                ...           6 years ago
  • 6.2.1                                ...           6 years ago
  • 6.2.2                                ...           6 years ago
  • 6.2.0                                ...           6 years ago
  • 6.1.4                                ...           6 years ago
  • 6.1.3                                ...           6 years ago
  • 6.1.2                                ...           6 years ago
  • 6.1.1                                ...           7 years ago
  • 6.1.0                                ...           7 years ago
  • 6.0.0                                ...           7 years ago
  • 5.10.0                                ...           7 years ago
  • 5.9.0                                ...           7 years ago
  • 5.8.0                                ...           7 years ago
  • 5.7.0                                ...           7 years ago
  • 5.5.0                                ...           7 years ago
  • 5.4.0                                ...           7 years ago
  • 5.3.0                                ...           7 years ago
  • 5.2.2                                ...           7 years ago
  • 5.2.1                                ...           7 years ago
  • 5.2.0                                ...           7 years ago
  • 5.1.2                                ...           7 years ago
  • 5.1.1                                ...           7 years ago
  • 5.1.0                                ...           7 years ago
  • 5.0.1                                ...           7 years ago
  • 5.0.0                                ...           7 years ago
  • 4.4.0                                ...           7 years ago
  • 4.3.0                                ...           8 years ago
  • 4.2.3                                ...           8 years ago
  • 4.2.2                                ...           8 years ago
  • 4.2.1                                ...           8 years ago
  • 4.2.0                                ...           8 years ago
  • 4.1.6                                ...           8 years ago
  • 4.1.5                                ...           8 years ago
  • 4.1.4                                ...           8 years ago
  • 4.1.3                                ...           8 years ago
  • 4.1.2                                ...           8 years ago
  • 4.1.1                                ...           8 years ago
  • 4.1.0                                ...           8 years ago
  • 4.0.0                                ...           8 years ago
  • 3.7.0                                ...           8 years ago
  • 3.6.1                                ...           8 years ago
  • 3.6.0                                ...           8 years ago
  • 3.5.0                                ...           8 years ago
  • 3.4.1                                ...           9 years ago
  • 3.4.0                                ...           9 years ago
  • 3.3.0                                ...           9 years ago
  • 3.2.0                                ...           9 years ago
  • 3.1.0                                ...           9 years ago
  • 3.0.0                                ...           9 years ago
  • 2.8.0                                ...           9 years ago
  • 2.7.0                                ...           9 years ago
  • 2.6.0                                ...           9 years ago
  • 2.5.0                                ...           9 years ago
  • 2.4.0                                ...           9 years ago
  • 2.3.0                                ...           9 years ago
  • 2.2.1                                ...           9 years ago
  • 2.1.1                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.3                                ...           9 years ago
  • 2.0.2                                ...           9 years ago
  • 2.0.1                                ...           9 years ago
  • 2.0.0                                ...           10 years ago
  • 1.1.7                                ...           10 years ago
  • 1.1.6                                ...           10 years ago
  • 1.1.5                                ...           10 years ago
  • 1.1.4                                ...           10 years ago
  • 1.1.3                                ...           10 years ago
  • 1.1.2                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (8)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE