MIT License

项目介绍

securingsincity/react-ace 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 4.2k 个 Star、574 次 Fork。

仓库全名
securingsincity/react-ace
开源许可证
MIT License
Star 数
4.2k
Fork 数
574
未关闭 Issue
200

README 摘要

React-Ace 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 Examples Checkout the example directory for a working…

完整内容见 GitHub 原始 README 或本页 。

常见问题

react-ace 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 4.2k 个 Star。

react-ace 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 react-ace 的源码?

可以直接克隆仓库:git clone https://github.com/securingsincity/react-ace.git,默认分支为 main;安装与运行步骤见仓库 README。

react-ace 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 200 个未关闭 Issue;Star 数为 4.2k,可作为社区活跃度的参考。

简要分析

热度分
5381
价值分
2687
活跃状态
活跃

语言占比

CSS
HTML
JavaScript
TypeScript

Release

README

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]

评论

暂无评论