When in editing mode, clicking the "edit" tab above the text box causes
the editor to toggle the classes without checking whether or not the
editor is already in edit mode. This fixes that by using add/removeClass
instead of toggleClass.
Fixes: #3991
Signed-off-by: Alexander Scheel <ascheel@redhat.com>
Note that this was manually tested but as I'm not sure how to build Pagure, I wasn't able to verify it myself. I'm also not sure if there's more places this occurs with other IDs than #editinmarkdown.
When in editing mode, clicking the "edit" tab above the text box causes
the editor to toggle the classes without checking whether or not the
editor is already in edit mode. This fixes that by using add/removeClass
instead of toggleClass.
Fixes: #3991
Signed-off-by: Alexander Scheel <ascheel@redhat.com>Note that this was manually tested but as I'm not sure how to build Pagure, I wasn't able to verify it myself. I'm also not sure if there's more places this occurs with other IDs than
#editinmarkdown.