@afeefa/vue-app 0.0.207 → 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.207
1
+ 0.0.208
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.207",
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