roosterjs 是一个不依赖框架的 JavaScript 富文本编辑器。
Rooster 是一个框架独立的 JavaScript 富文本编辑器,它精心地嵌套在 在一个 HTML ` B I U
2. Navigate to editor.htm, you will see a editor shown in the page which includes buttons with bold, italic, underline
actions.
## Sample code
To view the demo site, please click [here](https://microsoft.github.io/roosterjs/index.html).
To build the demo site code yourself, follow these instructions:
1. Get dependencies using [yarn](https://yarnpkg.com) or [npm](https://www.npmjs.com/):
```
cmd
线Build the source code, and start the sample editor:
yarn start
or
```
npm start…
yarn testRun all tests from command line in Safari on macOS
safaridriver --enable yarn 测试:Safari
在运行命令之前,必须启用 Safari 的**允许远程自动化**设置。
## 依赖项
作为一个 NodeJs 包,RoosterJs 具有运行时依赖(在每个子目录下的 package.json 中指定)
"dependencies" 部分中的包)以及构建时的依赖项 (在 package.json 中指定)
"devDependencies" 部分中的根路径)。
对于运行时依赖项,有两个部分:
1. 新依赖项的价值以及使用该依赖项的代码为 roosterjs 带来了什么? 如果我们添加了一个新的依赖项并创建了一个新的 API 来调用该依赖项,那么这个新的 API 并没有带来太多价值,项目中使用 roosterjs 的人可以在自己的代码中实现这一点,我们不应该将这种依赖项添加到那些真正不需要它的人中。暂无开放 Issues,或尚未同步最近议题。