coffeekraken-s-codemirror-component
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -211,3 +211,5 @@ "use strict"; | ||
this._processCode(); | ||
if (this.props.processCodeAtStart) { | ||
this._processCode(); | ||
} | ||
} | ||
@@ -716,3 +718,10 @@ /** | ||
*/ | ||
accept: null | ||
accept: null, | ||
/** | ||
* Specify if want to process the code at start or not | ||
* @prop | ||
* @type {Boolean} | ||
*/ | ||
processCodeAtStart: true | ||
}; | ||
@@ -719,0 +728,0 @@ } |
@@ -264,3 +264,12 @@ # SCodemirrorComponent | ||
### processCodeAtStart | ||
Specify if want to process the code at start or not | ||
Type : **{ [Boolean](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Boolean) }** | ||
Default : **true** | ||
## Properties | ||
@@ -267,0 +276,0 @@ |
{ | ||
"name": "coffeekraken-s-codemirror-component", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Webcomponent wrapper for the codemirror editor library.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -226,3 +226,10 @@ import SWebComponent from 'coffeekraken-sugar/js/core/SWebComponent' | ||
*/ | ||
accept : null | ||
accept : null, | ||
/** | ||
* Specify if want to process the code at start or not | ||
* @prop | ||
* @type {Boolean} | ||
*/ | ||
processCodeAtStart : true | ||
}; | ||
@@ -492,3 +499,5 @@ } | ||
// first update | ||
this._processCode(); | ||
if (this.props.processCodeAtStart) { | ||
this._processCode(); | ||
} | ||
} | ||
@@ -495,0 +504,0 @@ |
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
1859565
14629