@burh/nuxt-core 1.0.41 → 1.0.43
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.
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="quill">
|
|
3
3
|
<div :id="toolbarId">
|
|
4
|
-
<div class="ql-formats">
|
|
5
|
-
<button class="ql-bold"></button>
|
|
6
|
-
<button class="ql-italic"></button>
|
|
7
|
-
<button class="ql-underline"></button>
|
|
8
|
-
<button class="ql-link"></button>
|
|
9
|
-
<button class="ql-blockquote"></button>
|
|
10
|
-
<button class="ql-code"></button>
|
|
11
|
-
<button class="ql-image"></button>
|
|
12
|
-
<button type="button" class="ql-list" value="ordered"></button>
|
|
13
|
-
<button type="button" class="ql-list" value="bullet"></button>
|
|
14
|
-
</div>
|
|
15
4
|
</div>
|
|
16
5
|
<div :id="editorId" :name="name" class ref="editor"></div>
|
|
17
6
|
</div>
|
|
18
7
|
</template>
|
|
19
8
|
<script>
|
|
9
|
+
import 'quill/dist/quill.core.css'
|
|
10
|
+
import 'quill/dist/quill.snow.css'
|
|
11
|
+
import 'quill/dist/quill.bubble.css'
|
|
20
12
|
export default {
|
|
21
13
|
name: "html-editor",
|
|
22
14
|
props: {
|
|
@@ -40,7 +32,26 @@ export default {
|
|
|
40
32
|
this.editor = new Quill(`#${this.editorId}`, {
|
|
41
33
|
theme: "snow",
|
|
42
34
|
modules: {
|
|
43
|
-
toolbar:
|
|
35
|
+
toolbar: [
|
|
36
|
+
[{ 'font': [] }],
|
|
37
|
+
[{ 'color': [] }, { 'background': [] }],
|
|
38
|
+
|
|
39
|
+
[{ 'size': ['small', false, 'large', 'huge'] }], // custom dropdown
|
|
40
|
+
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
|
41
|
+
|
|
42
|
+
[{ 'align': '' }, {'align': 'center'}, {'align': 'justify'}, {'align': 'right'}],
|
|
43
|
+
|
|
44
|
+
['bold', 'italic', 'underline', 'strike'], // toggled buttons
|
|
45
|
+
|
|
46
|
+
[ 'link', 'image' ], // add's image support
|
|
47
|
+
|
|
48
|
+
['blockquote', 'code-block'],
|
|
49
|
+
|
|
50
|
+
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
|
|
51
|
+
[{ 'script': 'sub'}, { 'script': 'super' }], // superscript/subscript
|
|
52
|
+
[{ 'indent': '-1'}, { 'indent': '+1' }], // outdent/indent
|
|
53
|
+
[{ 'direction': 'rtl' }], // text direction
|
|
54
|
+
]
|
|
44
55
|
},
|
|
45
56
|
});
|
|
46
57
|
|
|
@@ -97,6 +108,7 @@ export default {
|
|
|
97
108
|
};
|
|
98
109
|
</script>
|
|
99
110
|
<style lang="scss">
|
|
111
|
+
|
|
100
112
|
.ql-clipboard {
|
|
101
113
|
display: none;
|
|
102
114
|
}
|
|
@@ -105,4 +117,7 @@ export default {
|
|
|
105
117
|
resize: vertical;
|
|
106
118
|
overflow-y: scroll;
|
|
107
119
|
}
|
|
120
|
+
.ql-container.ql-snow {
|
|
121
|
+
border: 0;
|
|
122
|
+
}
|
|
108
123
|
</style>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<p class="col-12 text-center">Não é possivel mais editar este curso.</p>
|
|
7
7
|
|
|
8
8
|
<div class="col-12 mb-4">
|
|
9
|
-
<img class="d-block
|
|
9
|
+
<img class="d-block mx-auto" src="/img/content/avatar-burh-404.svg" alt="imagem de erro">
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="col-12">
|
|
@@ -154,9 +154,17 @@ export default {
|
|
|
154
154
|
let params = {
|
|
155
155
|
users: formatRequest()
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
this.resetSlots();
|
|
158
158
|
this.$emit('send-course', params);
|
|
159
|
-
|
|
159
|
+
},
|
|
160
|
+
resetSlots() {
|
|
161
|
+
this.slots = [
|
|
162
|
+
{
|
|
163
|
+
name: '',
|
|
164
|
+
email: ''
|
|
165
|
+
}
|
|
166
|
+
];
|
|
167
|
+
}
|
|
160
168
|
},
|
|
161
169
|
watch: {
|
|
162
170
|
selectedCourse(newValue) {
|