Comment required for changes

I want to force the user to enter a comment while editing a document. Can I do that?

I tried to set parameters

xwiki.editcomment = 1
xwiki.editcomment.mandatory = 1

but it doesn’t work

If you’re using in-place editing this is a known issue, see Loading...

Also make sure you hard refresh your browser cache since there’s a bug, see Loading...

In my case I was using the wiki editor and after clearing my browser cache, it started working.