@afeefa/vue-app 0.0.206 → 0.0.208

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.206
1
+ 0.0.208
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.206",
3
+ "version": "0.0.208",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -240,9 +240,20 @@ export default class ARichTextArea extends Vue {
240
240
 
241
241
  get currentValueStripped () {
242
242
  if (this.editor) {
243
- return this.editor.state.doc.textContent
243
+ const value = this.editor.state.doc.textContent
244
+ return this.getSanitizedValue(value)
244
245
  }
245
246
  }
247
+
248
+ getSanitizedValue (value) {
249
+ if (this.validator) {
250
+ const sanitizers = this.validator.getSanitizers()
251
+ for (const sanitizer of sanitizers) {
252
+ value = sanitizer(value)
253
+ }
254
+ }
255
+ return value
256
+ }
246
257
  }
247
258
  </script>
248
259
 
@@ -21,6 +21,7 @@
21
21
  <slot
22
22
  name="models"
23
23
  :models="models_"
24
+ :filters="filters"
24
25
  />
25
26
  </template>
26
27
 
@@ -53,6 +54,7 @@
53
54
  name="model-table"
54
55
  :model="model"
55
56
  :index="index"
57
+ :filters="filters"
56
58
  />
57
59
  </a-table-row>
58
60
  </a-table>
@@ -67,6 +69,7 @@
67
69
  <slot
68
70
  name="model"
69
71
  :model="model"
72
+ :filters="filters"
70
73
  />
71
74
  </div>
72
75
  </template>