Title: Uncaught TypeError: CodeMirror.overlayMode is not a function
Last modified: April 4, 2019

---

# Uncaught TypeError: CodeMirror.overlayMode is not a function

 *  Resolved [brunopbarbosa](https://wordpress.org/support/users/brunopbarbosa/)
 * (@brunopbarbosa)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-overlaymode-is-not-a-function/)
 * Hello,
 * i’m currently experiencing an issue with cf7 grid where i cannot add new forms
   or edit existing forms – when i open the form edit page, there is the following
   error on the console:
    Uncaught TypeError: CodeMirror.overlayMode is not a function
 * And when i try to publish or update a form:
    Uncaught Error: cannot call methods
   on tabs prior to initialization; attempted to call method ‘option’
 * I have the latest version of cf7-grid (2.7.1) and the latest version of contact
   form 7 (5.1.1).
 * Do you have any idea of what can be causing this?
 * Best Regards,
    Bruno

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

 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-overlaymode-is-not-a-function/#post-11398930)
 * Either you have a js library that is not being loaded, or as reported at the 
   bottom of this [thread](https://wordpress.org/support/topic/unable-to-publish-form-save-draft-or-see-text-view/#post-11379276),
   likely you are using another plugin that is also using Codemirror libraries and
   these are getting (wrongly) instantiated on the CF7 Smart Grid admin page.
 *  Thread Starter [brunopbarbosa](https://wordpress.org/support/users/brunopbarbosa/)
 * (@brunopbarbosa)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-overlaymode-is-not-a-function/#post-11403131)
 * I checked and it was a version of the Swift Performance Lite Plugin that was 
   also calling for the codemirror.js script.
 * I’ve updated it and now everything works fine. Thanks for the info!
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-overlaymode-is-not-a-function/#post-11407079)
 * oh good 🙂

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

The topic ‘Uncaught TypeError: CodeMirror.overlayMode is not a function’ is closed
to new replies.

 * ![](https://ps.w.org/cf7-grid-layout/assets/icon-256x256.png?rev=1834229)
 * [Smart Grid-Layout Design for Contact Form 7](https://wordpress.org/plugins/cf7-grid-layout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-grid-layout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-grid-layout/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-grid-layout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-grid-layout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-grid-layout/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/uncaught-typeerror-codemirror-overlaymode-is-not-a-function/#post-11407079)
 * Status: resolved