Fix for #8488 by making the selector for the cursor as specific as the one in codemirror.