• Stars
    star
    4,031
  • Rank 10,798 (Top 0.3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React Ace Component

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]

More Repositories

1

molasses

Feature toggle library for elixir
Elixir
77
star
2

react-jest-example

An example of react and jest testing
JavaScript
34
star
3

backbone-react-ui

React components for use with backbone and backbone paginator
JavaScript
19
star
4

phpsms

Php sms mailer based on textbelt https://github.com/typpo/textbelt
PHP
13
star
5

vscode-exfmt

Vscode Plugin for exfmt
TypeScript
11
star
6

react-table-acula

A series of react components for tables
JavaScript
9
star
7

react-ace-create-react-app-example

react-ace-create-react-app-example
HTML
9
star
8

pocket-casts-electron

Electron version of Pocket Casts with TouchBar Support
JavaScript
7
star
9

react-ace-webpack-example

Example of react-ace using webpack.
JavaScript
7
star
10

mongoadmin

An web-based admin tool for MongoDB.
Go
4
star
11

Antidote

JavaScript
3
star
12

node-codeship

codeship api wrapper
JavaScript
3
star
13

google-home-xbox

Python
3
star
14

vs-code-redux-snippets

Redux snippets for Visual Studio Code
3
star
15

vs-code-phpunit-snippets

2
star
16

awesome-job-dude

a high five from your command line
JavaScript
2
star
17

hurry-up

2018 baseball hack day set up
HTML
2
star
18

sign-stealer

Tensorflow! Baseball hackday!
JavaScript
2
star
19

deebot-alerter

Alert me when my deebot starts vacuuming
Go
2
star
20

words-date-pebble-watchface

Words + Date pebble watch face
C
2
star
21

phat-image

Go
2
star
22

go-graphql-example

Go
1
star
23

go-washer-dryer

Go
1
star
24

typescript-talk-demo

Demo repo for my typescript talk
TypeScript
1
star
25

chatty

Fork of https://bitbucket.org/hipchat/chatty
JavaScript
1
star
26

manager-readme

1
star
27

gizmo-boilerplate

NYTimes Gizmo Boilerplate
Go
1
star
28

branch-releaser

Command line tool for doing git branch based deployments
Go
1
star