rc-editor-core
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -281,2 +281,5 @@ 'use strict'; | ||
this.refs.editor.focus(ev); | ||
if (this.props.readOnly) { | ||
this._focusDummy.focus(); | ||
} | ||
if (this.props.onFocus) { | ||
@@ -477,3 +480,5 @@ this.props.onFocus(ev); | ||
return ev.preventDefault(); | ||
} }, React.createElement(_draftJs.Editor, __assign({}, this.props, eventHandler, { ref: "editor", customStyleMap: customStyleMap, customStyleFn: this.customStyleFn.bind(this), editorState: editorState, handleKeyCommand: this.handleKeyCommand.bind(this), keyBindingFn: this.handleKeyBinding.bind(this), onChange: this.setEditorState.bind(this), blockStyleFn: this.getBlockStyle.bind(this), blockRenderMap: blockRenderMap, handlePastedText: this.handlePastedText, blockRendererFn: this.blockRendererFn.bind(this) })), this.props.children)); | ||
} }, React.createElement(_draftJs.Editor, __assign({}, this.props, eventHandler, { ref: "editor", customStyleMap: customStyleMap, customStyleFn: this.customStyleFn.bind(this), editorState: editorState, handleKeyCommand: this.handleKeyCommand.bind(this), keyBindingFn: this.handleKeyBinding.bind(this), onChange: this.setEditorState.bind(this), blockStyleFn: this.getBlockStyle.bind(this), blockRenderMap: blockRenderMap, handlePastedText: this.handlePastedText, blockRendererFn: this.blockRendererFn.bind(this) })), readOnly ? React.createElement("input", { className: 'focus-dummy', ref: function ref(ele) { | ||
return _this8._focusDummy = ele; | ||
}, onBlur: eventHandler.onBlur }) : null, this.props.children)); | ||
}; | ||
@@ -480,0 +485,0 @@ |
{ | ||
"name": "rc-editor-core", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "editor-core ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
55163
1110