vue-document-editor
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,7 @@ | ||
## v1.1.2 | ||
- Fix [Issue 3](https://github.com/motla/vue-document-editor/issues/2) | ||
- Renaming the static library "VueDocumentEditor" | ||
- Adding UMD example to README.md | ||
## v1.1.1 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "vue-document-editor", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Paper-sized WYSIWYG document editor for Vue apps", | ||
@@ -32,3 +32,3 @@ "author": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build --dest docs && vue-cli-service build --target lib --name vue-document-editor src/DocumentEditor/DocumentEditor.vue", | ||
"build": "vue-cli-service build --dest docs && vue-cli-service build --target lib --name VueDocumentEditor src/DocumentEditor/DocumentEditor.vue", | ||
"lint": "vue-cli-service lint", | ||
@@ -35,0 +35,0 @@ "preversion": "npm run lint", |
@@ -57,3 +57,34 @@ <div align="center"> | ||
``` | ||
<details> | ||
<summary><small>same example using UMD loaded with a CDN</small></summary> | ||
```HTML | ||
<html> | ||
<head> | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> | ||
<script src="https://raw.githubusercontent.com/motla/vue-document-editor/master/dist/vue-document-editor.umd.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<div style="font-family: Avenir, sans-serif"> | ||
<vue-document-editor :content.sync="content" /> | ||
</div> | ||
</div> | ||
<script> | ||
var app = new Vue({ | ||
el: '#app', | ||
components: { VueDocumentEditor }, | ||
data () { | ||
return { | ||
content: ["<h1>Hello!</h1>Fill this page with text and new pages will be created as it overflows."] | ||
} | ||
} | ||
}) | ||
</script> | ||
</body> | ||
</html> | ||
``` | ||
</details> | ||
## Complete example | ||
@@ -60,0 +91,0 @@ See the [Demo.vue](src/Demo/Demo.vue) file and the [InvoiceTemplate.vue](src/Demo/InvoiceTemplate.vue) file corresponding to the [live demo](https://motla.github.io/vue-document-editor/). |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2993447
107
1