make global css change on command/edit mode
correct variable name
Actually test that the j-nth cell.
Merge pull request #7274 from Carreau/global-command

make global css change on command/edit mode