From 0c75d6e089b92381efdf979543280617ee2bdda3 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 24 Jul 2019 16:03:10 +0200 Subject: [PATCH] Fix commit --- .../ContributionForm/ContributionForm.vue | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index b506305db..5b1040b62 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -10,7 +10,7 @@ /> - {{ form.title.length }}/{{formSchema.title.max }} + {{ form.title.length }}/{{ formSchema.title.max }} - {{ form.contentLength }}/{{content_max }} + {{ form.contentLength }}/{{ content_max }} ]+(>|$)/gm, '') + 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) - { + // Enable save button if requirements are met + if (str.length >= this.content_min && str.length <= this.content_max) { this.disabled = false } },