Title: Codemirror.js Error &#8211; Hides Code
Last modified: August 22, 2016

---

# Codemirror.js Error – Hides Code

 *  Resolved [mealtime](https://wordpress.org/support/users/mealtime/)
 * (@mealtime)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/)
 * When a snippet is opened, the code flashes & then disappears (given a display:
   none; attribute). In the console, this message shows:
 * TypeError: cm.options.theme is null
    cm.options.theme.replace(/(^|\s)\s*/g, ”
   cm-s-“);
 * I’ve been using the plugin for many months & never had a problem. Thank you!
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914763)
 * Does this error go away when you go to the settings page, change the theme, and
   save?
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [11 years ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914769)
 * Any updates on this?
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [11 years ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914770)
 * I’m going to assume that this error has been fixed. If there are any updates,
   please let me know.
 *  Thread Starter [mealtime](https://wordpress.org/support/users/mealtime/)
 * (@mealtime)
 * [11 years ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914771)
 * Hi Shea,
 * Sorry for the delay! I get a lot of traffic & I really would prefer to not change
   the theme, even for a small period of time, so I’d have to setup a mirror site&
   try that. You haven’t come across the problem elsewhere? From others? Thanks 
   for the support!
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [11 years ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914772)
 * Hi,
 * Sorry for the confusion. I meant to go the Code Snippets plugin settings, and
   change the CodeMirror editor theme there. Not the whole site theme.
 *  Thread Starter [mealtime](https://wordpress.org/support/users/mealtime/)
 * (@mealtime)
 * [11 years ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914773)
 * Yes, changed it! All good now.
 * I had no idea there were themes for the plugin. Thanks for pointing that out.
 * Appreciate the help!
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [11 years ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914774)
 * I’m glad that it worked! Sorry for the initial delay in responding.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Codemirror.js Error – Hides Code’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/codemirrorjs-error-hides-code/#post-5914774)
 * Status: resolved