• Resolved Adam Forst

    (@erapop)


    Hey Guys!

    I love your plugin, however since upgrading past version 1.7.2, I find your plugin breaks if their are instances of CodeMirror.fromTextArea on the page. Is there a way around this? I am currently using a renamed secondary version of codemirror so that I can use it on my custom css and custom js metaboxes, but that is dirty and temporary…

    Thanks again for your plugin!

    • This topic was modified 6 years, 11 months ago by Adam Forst.
Viewing 1 replies (of 1 total)
  • Plugin Author James Bradford

    (@arniebradfo)

    The plugin shouldn’t have any problems with other uses of the CodeMirror object. The implementation is isolated from the global scope. Its encapsulated in an immediately invoked function expression. Are you sure your not editing the global CodeMirror. It might also be something to do with the css class names.

    You could fix the code and submit a pull request: github

    Thanks and sorry.

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict with other instances of CodeMirror’ is closed to new replies.