• Resolved mealtime

    (@mealtime)


    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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Does this error go away when you go to the settings page, change the theme, and save?

    Plugin Author Shea Bunge

    (@bungeshea)

    Any updates on this?

    Plugin Author Shea Bunge

    (@bungeshea)

    I’m going to assume that this error has been fixed. If there are any updates, please let me know.

    Thread Starter mealtime

    (@mealtime)

    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

    (@bungeshea)

    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

    (@mealtime)

    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

    (@bungeshea)

    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.