vue2-ace-editor
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -18,3 +18,3 @@ var ace = require('brace'); | ||
}, | ||
lang:String, | ||
lang:true, | ||
theme:String, | ||
@@ -50,3 +50,3 @@ height:true, | ||
lang:function (newLang) { | ||
this.editor.getSession().setMode('ace/mode/'+newLang); | ||
this.editor.getSession().setMode(typeof newLang === 'string' ? ( 'ace/mode/' + newLang ) : newLang); | ||
}, | ||
@@ -84,3 +84,3 @@ options:function(newOption){ | ||
//editor.setOption("enableEmmet", true); | ||
editor.getSession().setMode('ace/mode/'+lang); | ||
editor.getSession().setMode(typeof lang === 'string' ? ( 'ace/mode/' + lang ) : lang); | ||
editor.setTheme('ace/theme/'+theme); | ||
@@ -87,0 +87,0 @@ editor.setValue(this.value,1); |
{ | ||
"name": "vue2-ace-editor", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "A Vue2.0's component based on ace/brace", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16613