diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index c6bb2cdc4..cb56432b8 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -92,7 +92,7 @@ export default { }, id: null, loading: false, - disabled: false, + disabled: true, slug: null, users: [], } @@ -169,6 +169,11 @@ export default { }, updateEditorContent(value) { // this.form.content = value + this.disabled = true + if (value.replace(/

|<\/p>|

|<\/h3>|

|<\/h4>/gm, '').length > 3) { + this.disabled = false + } + this.$refs.contributionForm.update('content', value) }, availableLocales() {