From e4c32c0c67753b1f6c58ecd4a768094416c5fcfd Mon Sep 17 00:00:00 2001 From: buddha87 Date: Tue, 8 Mar 2016 21:53:14 +0100 Subject: [PATCH] Clear richtext in contentcreateform --- .../modules/content/widgets/views/wallCreateContentForm.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php b/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php index ffef324b8b..9a3d652375 100644 --- a/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php +++ b/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php @@ -207,6 +207,9 @@ use humhub\modules\space\models\Space; $('#public').attr('checked', false); $('#contentForm_message_contenteditable').html(''); $('#contentForm_message_contenteditable').addClass('atwho-placeholder'); + + $('#contentFormBody').find('.atwho-input').trigger('clear'); + // Notify FileUploadButtonWidget to clear (by providing uploaderId) resetUploader('contentFormFiles'); } else {