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>|