@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.
|
1
|
+
0.0.208
|
package/package.json
CHANGED
@@ -240,9 +240,20 @@ export default class ARichTextArea extends Vue {
|
|
240
240
|
|
241
241
|
get currentValueStripped () {
|
242
242
|
if (this.editor) {
|
243
|
-
|
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
|
|