Maik 79c46dcb5d modul 3 yıl önce
..
.github 79c46dcb5d modul 3 yıl önce
dist 79c46dcb5d modul 3 yıl önce
docs 79c46dcb5d modul 3 yıl önce
lib 79c46dcb5d modul 3 yıl önce
src 79c46dcb5d modul 3 yıl önce
.babelrc 79c46dcb5d modul 3 yıl önce
.eslintrc 79c46dcb5d modul 3 yıl önce
CHANGELOG.md 79c46dcb5d modul 3 yıl önce
CODE_OF_CONDUCT.md 79c46dcb5d modul 3 yıl önce
CONTRIBUTING.md 79c46dcb5d modul 3 yıl önce
LICENSE 79c46dcb5d modul 3 yıl önce
PULL_REQUEST_TEMPLATE.md 79c46dcb5d modul 3 yıl önce
README.md 79c46dcb5d modul 3 yıl önce
logo.png 79c46dcb5d modul 3 yıl önce
package.json 79c46dcb5d modul 3 yıl önce
tsconfig.json 79c46dcb5d modul 3 yıl önce
tslint.json 79c46dcb5d modul 3 yıl önce
types.d.ts 79c46dcb5d modul 3 yıl önce
webpack.config.base.js 79c46dcb5d modul 3 yıl önce
webpack.config.development.js 79c46dcb5d modul 3 yıl önce
webpack.config.example.js 79c46dcb5d modul 3 yıl önce
webpack.config.production.js 79c46dcb5d modul 3 yıl önce

README.md

React-Ace

logo

Backers on Open Collective Sponsors on Open Collective Greenkeeper badge

npm version Build Status CDNJS Coverage Status

Buy Me A Coffee

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";

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]