7.4.1 • Published 2 years ago

react-ace-builds v7.4.1

Weekly downloads
284
License
MIT
Repository
github
Last release
2 years ago

React-Ace-Builds

logo

npm version Build Status jsdeliver Coverage Status

A set of react components for Ace

DEMO of React Ace-Builds

DEMO of React Ace-Builds Split Editor

DEMO of React Ace-Builds Diff Editor

Notice

This repository contains a fork of securingsincity/react-ace where unmaintained brace is replaced with ace-builds. This was motivated by a pull request created by @dennisoelkers.

Install

npm install react-ace-builds

Basic Usage

import React from "react";
import { render } from "react-dom";
import AceEditor from "react-ace-builds";
import "react-ace-builds/webpack-resolver-min";

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

// Render editor
render(
  <AceEditor
    mode="java"
    theme="github"
    onChange={onChange}
    name="UNIQUE_ID_OF_DIV"
  />,
  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

7.4.1

2 years ago

7.3.10

2 years ago

7.4.0

2 years ago

7.3.5

4 years ago

7.3.4

4 years ago

7.3.6

4 years ago

7.3.1

5 years ago

7.3.0

5 years ago

7.2.6

5 years ago

7.2.4

6 years ago

7.2.3

7 years ago

7.2.2

7 years ago

7.2.1

7 years ago

7.2.0

7 years ago

7.1.0

7 years ago

7.0.0

7 years ago

0.0.1

7 years ago