New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

braft-editor

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braft-editor - npm Package Compare versions

Comparing version

to
1.2.0

4

CHANGELOG.md
## 更新记录
- 2018-01-29 v1.2.0
- 支持配置可插入的外部媒体类型(感谢[@jane900618](https://github.com/jane900618)建议)
- 支持配置图片的工具栏按钮(感谢[@jane900618](https://github.com/jane900618)建议)
- 部分细节优化
- 2018-01-24 v1.1.14

@@ -3,0 +7,0 @@ - 支持纯文本粘贴(感谢[@IveChen](https://github.com/IveChen)建议) + 部分细节优化

2

package.json
{
"name": "braft-editor",
"version": "1.1.14",
"version": "1.2.0",
"description": "Rich Text Editor Based On Draft.js",

@@ -5,0 +5,0 @@ "main": "dist/braft.js",

@@ -8,2 +8,6 @@ # Braft Editor

## 最近更新
- 2018-01-29 v1.2.0
- 支持配置可插入的外部媒体类型(感谢[@jane900618](https://github.com/jane900618)建议)
- 支持配置图片的工具栏按钮(感谢[@jane900618](https://github.com/jane900618)建议)
- 部分细节优化
- 2018-01-24 v1.1.14

@@ -369,2 +373,26 @@ - 支持纯文本粘贴(感谢[@IveChen](https://github.com/IveChen)建议) + 部分细节优化

#### media.externalMedias [object]
配置编辑器可插入的外部网络媒体类型,默认值如下:
```javascript
{
image: true,
audio: true,
video: true
}
// 如果以上三个值皆为false,则不允许插入任何外部媒体,也不会显示插入外部媒体的入口
```
#### imageControls [object]
配置图片工具栏(tooltip)可用的按钮,默认值如下:
```javascript
{
floatLeft: true,
floatRight: true,
alignLeft: true,
alignCenter: true,
alignRight: true,
link: true
}
```
## 实例方法

@@ -371,0 +399,0 @@ > 绝大多数的非get类方法都会返回编辑器实例,即支持链式调用

Sorry, the diff of this file is too big to display