@nixweb/nixloc-ui 0.0.99 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<br /><br />
|
|
4
|
-
{{ mostrar }}
|
|
5
|
-
<button @click="mostrar = !mostrar">Mostrar</button>
|
|
6
|
-
<br />
|
|
7
|
-
<DocumentoPreview v-if="mostrar" :template="template" />
|
|
8
3
|
<div class="form-group row">
|
|
9
4
|
<div>
|
|
10
5
|
<div class="document-editor__toolbar"></div>
|
|
@@ -18,18 +13,18 @@
|
|
|
18
13
|
</template>
|
|
19
14
|
|
|
20
15
|
<script>
|
|
21
|
-
import DocumentoPreview from "./DocumentoPreview.vue";
|
|
22
16
|
import CKEditor from "ckeditor5-custom-build/build/ckeditor";
|
|
23
17
|
|
|
24
18
|
export default {
|
|
25
19
|
name: "HtmlEditor",
|
|
26
20
|
components: {
|
|
27
21
|
CKEditor,
|
|
28
|
-
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
value: String,
|
|
29
25
|
},
|
|
30
26
|
data() {
|
|
31
27
|
return {
|
|
32
|
-
mostrar: false,
|
|
33
28
|
editor: CKEditor,
|
|
34
29
|
template: "",
|
|
35
30
|
};
|
|
@@ -40,6 +35,11 @@ export default {
|
|
|
40
35
|
toolbarContainer.appendChild(editor.ui.view.toolbar.element);
|
|
41
36
|
},
|
|
42
37
|
},
|
|
38
|
+
watch: {
|
|
39
|
+
template() {
|
|
40
|
+
this.$emit("input", this.template);
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
43
|
};
|
|
44
44
|
</script>
|
|
45
45
|
|