React Ace

React Ace Component

Github星跟蹤圖

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

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]










主要指標

概覽
名稱與所有者securingsincity/react-ace
主編程語言TypeScript
編程語言HTML (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2014-11-29 05:15:14
推送於2025-05-02 10:26:42
最后一次提交2020-07-06 09:53:46
發布數95
最新版本名稱v14.0.1 (發布於 )
第一版名稱1.1.2 (發布於 2015-03-08 18:58:50)
用户参与
星數4.2k
關注者數30
派生數609
提交數1.6k
已啟用問題?
問題數500
打開的問題數198
拉請求數775
打開的拉請求數27
關閉的拉請求數779
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?