WordPress.org

Support

Support » Plugins and Hacks » CodeColorer » [Plugin: CodeColorer] javascript bug affects admin panel

[Plugin: CodeColorer] javascript bug affects admin panel

  • quicktags.js returns a javascript error that edButtons is not defined. Can fix it by wrapping in a try block. Code for quicktags.js:

    try {
          for (var i = 0; i < edButtons.length; i++) {
            if (edButtons[i].id == 'ed_code') {
              edButtons[i].id = 'ed_cc';
              edButtons[i].display = 'cc';
              edButtons[i].tagStart = '';
              edButtons[i].tagEnd = '[/cc]';
    
              codeTagIndex = i;
              break;
            }
          }
        } catch (err) {}

    http://wordpress.org/extend/plugins/codecolorer/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: CodeColorer] javascript bug affects admin panel’ is closed to new replies.
Skip to toolbar