braft-editor
Advanced tools
Comparing version 2.2.5 to 2.2.6
### 历史更新记录 | ||
- 2019-02-22 v2.2.6 | ||
- 优化blockRenerMap属性,支持传入一个返回blockRenerMap对象的函数 | ||
- 优化上下标样式的设置 | ||
- 优化编辑器内文本缩进和文本对齐同事存在时的显示效果 | ||
- 2019-01-11 v2.2.4 | ||
@@ -4,0 +8,0 @@ - 新增editorId属性,作用与id属性完全一样,用于解决在Ant Design Form组件中id属性会被覆盖导致无法正常使用扩展模块的问题 |
import * as React from 'react'; | ||
import Immutable from 'immutable'; | ||
import { | ||
@@ -41,2 +42,5 @@ EditorState as _EditorState, | ||
draftProps?: DraftEditorProps; | ||
blockRenderMap?: Immutable.Map | Function; | ||
blockRendererFn?: Function; | ||
converts?: object; | ||
hooks?: HooksType; | ||
@@ -64,3 +68,3 @@ textBackgroundColor?: boolean; | ||
): EditorState; | ||
static use(extension: object | object[]): void; | ||
undo(): void; | ||
@@ -256,5 +260,3 @@ redo(): void; | ||
export type HookFunc = ( | ||
params: { href: string; target: any } | ||
) => { href: string; target: any }; | ||
export type HookFunc = (any) => any; | ||
@@ -261,0 +263,0 @@ export type HookType = |
{ | ||
"name": "braft-editor", | ||
"version": "2.2.5", | ||
"version": "2.2.6", | ||
"description": "Rich Text Editor Based On Draft.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -33,2 +33,6 @@ # Braft Editor | ||
- 2019-02-22 v2.2.6 | ||
- 优化blockRenerMap属性,支持传入一个返回blockRenerMap对象的函数 | ||
- 优化上下标样式的设置 | ||
- 优化编辑器内文本缩进和文本对齐同事存在时的显示效果 | ||
- 2019-01-11 v2.2.4 | ||
@@ -35,0 +39,0 @@ - 新增editorId属性,作用与id属性完全一样,用于解决在Ant Design Form组件中id属性会被覆盖导致无法正常使用扩展模块的问题 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1068641
5532
124