From 55ce9c1afbc924acff644a5abf187f64b1686340 Mon Sep 17 00:00:00 2001 From: senderfm Date: Thu, 4 Jul 2019 17:14:02 +0200 Subject: [PATCH] HcContributionForm submit is disabled by default replace all editor html tags --- webapp/components/ContributionForm/ContributionForm.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index f424f45ca..9f7ffa7e4 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -177,7 +177,12 @@ export default { updateEditorContent(value) { // this.form.content = value this.disabled = true - if (value.replace(/

|<\/p>|

|<\/h3>|

|<\/h4>/gm, '').length > 3) { + if ( + value.replace( + /

|<\/p>|

|<\/h3>|

|<\/h4>|