vuejs-ace-editor
A packaging of ace
Demo here: https://github.com/chairuosen/vue-ace-editor-demo/tree/vue2
How to use
-
Install
npm install vuejs-ace-editor
-
Require it in
components
of Vue options;...components:AceEditor... -
Require the editor's mode/theme module in custom methods
...methods:{//code here}{//language extension prerequsite...//language//snippet}... -
Use the component in template
prop
v-model
is requiredprop
lang
andtheme
is same as ace-editor's docprop
height
andwidth
could be one of these:200
,200px
,50%