diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-03-24 20:39:49 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-03-24 20:39:49 +0200 |
commit | b9099a8b7ea6f63c79bdcbb871cb993b2cb7e325 (patch) | |
tree | fe1c68e82f3c773927e471aca748390b98e1ca11 /client/components/activities | |
parent | 87a81789d109adcefc754c7cb33bcee395412a84 (diff) | |
download | wekan-b9099a8b7ea6f63c79bdcbb871cb993b2cb7e325.tar.gz wekan-b9099a8b7ea6f63c79bdcbb871cb993b2cb7e325.tar.bz2 wekan-b9099a8b7ea6f63c79bdcbb871cb993b2cb7e325.zip |
1) Fix Pasting text into a card is adding a line before and after
(and multiplies by pasting more) by changing paste "p" to "br".
2) Fixes to summernote and markdown comment editors, related
to keeping them open when adding comments, having
@member mention not close card, and disabling clicking of
@member mention.
Thanks to xet7 !
Closes #2890
Diffstat (limited to 'client/components/activities')
-rw-r--r-- | client/components/activities/comments.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/components/activities/comments.js b/client/components/activities/comments.js index 50ca019b..e885459e 100644 --- a/client/components/activities/comments.js +++ b/client/components/activities/comments.js @@ -33,6 +33,13 @@ BlazeComponent.extendComponent({ cardId, }); resetCommentInput(input); + // With Richer editor is in use, and comment is submitted, + // clear comment form with JQuery. Id #summernote is defined + // at client/components/main/editor.jade where it previously was + // id=id, now it is id="summernote". + if (Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === 'true') { + $('#summernote').summernote('code', ''); + } Tracker.flush(); autosize.update(input); input.trigger('submitted'); |