Huge News!Announcing our $40M Series B led by Abstract Ventures.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 2.2.5 to 2.2.6

4

CHANGELOG.md
### 历史更新记录
- 2019-02-22 v2.2.6
- 优化blockRenerMap属性,支持传入一个返回blockRenerMap对象的函数
- 优化上下标样式的设置
- 优化编辑器内文本缩进和文本对齐同事存在时的显示效果
- 2019-01-11 v2.2.4

@@ -4,0 +8,0 @@ - 新增editorId属性,作用与id属性完全一样,用于解决在Ant Design Form组件中id属性会被覆盖导致无法正常使用扩展模块的问题

10

index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc