diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue
index 32d26ad2c..b506305db 100644
--- a/webapp/components/ContributionForm/ContributionForm.vue
+++ b/webapp/components/ContributionForm/ContributionForm.vue
@@ -10,7 +10,7 @@
/>
- {{ form.title.length }}/64
+ {{ form.title.length }}/{{formSchema.title.max }}
- {{ form.contentLength }}/2000
+ {{ form.contentLength }}/{{content_max }}
]+(>|$)/gm, '').length
- this.form.contentLength = n
- if (n > this.formSchema.content.min && this.formSchema.content.max > n) {
+ // TODO: Do smth????? what is happening
+ this.$refs.contributionForm.update('content', value)
+ // filter HTML out of content value
+ const str = value.replace(/<\/?[^>]+(>|$)/gm, '')
+ // Set counter length of text
+ this.form.contentLength = str.length
+ //Enable save button if requirements are met
+ if ( str.length >= this.content_min &&
+ str.length <= this.content_max)
+ {
this.disabled = false
}
},