WordPress.org

Ready to get started?Download WordPress

Forums

CodeColorer
javascript bug affects admin panel (2 posts)

  1. robfelty
    Member
    Posted 3 years ago #

    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/

  2. Vito Botta
    Member
    Posted 3 years ago #

    Are you using TinyMCE advanced plugin as well?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic