@uiw/react-codemirror
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -69,2 +69,7 @@ 'use strict'; | ||
value: function componentDidMount() { | ||
this.renderCodeMirror(); | ||
} | ||
}, { | ||
key: 'renderCodeMirror', | ||
value: function renderCodeMirror() { | ||
var _this2 = this; | ||
@@ -123,3 +128,3 @@ | ||
(0, _keys2.default)(options).forEach(function (name) { | ||
if ((0, _stringify2.default)(_this3.props.options[name]) !== (0, _stringify2.default)(options[name])) { | ||
if (options[name] && (0, _stringify2.default)(options[name])) { | ||
_this3.editor.setOption(name, options[name]); | ||
@@ -126,0 +131,0 @@ } |
@@ -143,7 +143,8 @@ 'use strict'; | ||
case 3: | ||
this.setState({ | ||
_context2.next = 5; | ||
return this.setState({ | ||
codeMirrorOptions: (0, _extends3.default)({}, this.state.codeMirrorOptions, nextPros.options) | ||
}); | ||
case 4: | ||
case 5: | ||
case 'end': | ||
@@ -150,0 +151,0 @@ return _context2.stop(); |
{ | ||
"name": "@uiw/react-codemirror", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "CodeMirror component for React.", | ||
@@ -34,5 +34,8 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"classnames": "^2.2.6", | ||
"gh-pages": "^1.2.0", | ||
"kkt": "1.9.x" | ||
"highlight.js": "^9.12.0", | ||
"kkt": "1.9.x", | ||
"react-markdown": "^3.3.4" | ||
} | ||
} |
@@ -10,3 +10,3 @@ react-codemirror | ||
🌱 Load `mode` based on configuration. | ||
🌱 Automatically load `mode` files based on configuration. | ||
🚀 Quickly and easily configure the API. | ||
@@ -13,0 +13,0 @@ |
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
82145
1439
5