From 3830f6552ab414d4db4a90d75c947ed90d07bcf7 Mon Sep 17 00:00:00 2001 From: "ruosen.chai" Date: Mon, 19 Feb 2018 15:41:46 +0800 Subject: [PATCH] 0.0.6 published // remove emmet --- README.md | 14 ++++++++++++++ index.js | 4 ---- package.json | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5977b0f..4111425 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/index.js b/index.js index a960a45..dd09b1b 100644 --- a/index.js +++ b/index.js @@ -1,9 +1,5 @@ var ace = require('brace'); -require(['emmet/emmet'],function (data) { - window.emmet = data.emmet; -}); - module.exports = { template:"
", props:{ diff --git a/package.json b/package.json index 20ba9c7..d3fc65f 100644 --- a/package.json +++ b/package.json @@ -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": {