Skip to content

Commit

Permalink
0.0.6 published // remove emmet
Browse files Browse the repository at this point in the history
  • Loading branch information
ruosen.chai committed Feb 19, 2018
1 parent 16aecef commit 3830f65
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ A packaging of [ace](https://ace.c9.io/)

Demo here: https://github.com/chairuosen/vue-ace-editor-demo/tree/vue2

## IMPORTANT
emmet support for html is removed after 0.0.6. because its code cannot works with strict mode.

if you want to use it. require emmet by your own.
```
npm install emmet@git+https://github.com/cloud9ide/emmet-core.git#41973fcc70392864c7a469cf5dcd875b88b93d4a
```

```
require(['emmet/emmet'],function (data) { // this is huge. so require it async is better
window.emmet = data.emmet;
});
```

## How to use

1. Install
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
var ace = require('brace');

require(['emmet/emmet'],function (data) {
window.emmet = data.emmet;
});

module.exports = {
template:"<div :style=\"{height: height ? px(height) : '100%',width: width ? px(width) : '100%'}\"></div>",
props:{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue2-ace-editor",
"version": "0.0.5",
"version": "0.0.6",
"description": "A Vue2.0's component based on ace/brace",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 3830f65

Please sign in to comment.