• Resolved Penderis

    (@penderis)


    Hi I do not know about commonjs ect codemirror fails when it hits
    (function(mod) {
    if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike"));
    else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../clike/clike"], mod);
    else // Plain browser env
    mod(CodeMirror); //FAILS HERE <------
    })(function(CodeMirror) {
    "use strict";

    Any ideas how I can tell it to use the CodeMirror object thingy?

    https://wordpress.org/plugins/wp-editor/

Viewing 1 replies (of 1 total)
  • Plugin Author benjaminprojas

    (@benjaminprojas)

    Penderis,

    CodeMirror is an external library that is just used by WP Editor. I do not edit it in any way, just include it for my needs. Unfortunately it looks like the issue you are having is outside of the WP Editor scope.

Viewing 1 replies (of 1 total)
  • The topic ‘CodeMirror Fails’ is closed to new replies.