[backport] fix cancel edition in wysiwyg & subjects