The CodeMirror extension uses the button with changeable icon since the one shows the state (enabled/disabled).
So, we change the icon by changing the class of the button, it works fine but WikiEditor requires the defined icon when creating the button. If icon does not provided, the one inserts style="background-image: url("undefined");"
P.S. Additional description there T172458#3500256