anchor.diff:        tr.append("<th class='control control-top'></th>");
       }
     }
  -  this.$el.find('.table-editor tbody').prepend(tr);
  +  if (this.$el.find('.table-editor table thead').length > 0) {
  +    this.$el.find('.table-editor table thead').prepend(tr);
  +  } else {
  +    this.$el.find('.table-editor table tbody').prepend(tr);
  +  }
   };
   
   Cms_Column_Table.prototype.removeControlTable = function () {
     this.$el.find('.table-editor table .control').each(function () {
       $(this).remove();
     });
  -};
  +  this.$el.find(".table-editor table thead tr:empty").remove();
  +  this.$el.find(".table-editor table thead:empty").remove();
  +};
  
positive.code:   var index = parent[0].rowIndex;
    this.removeControlTable();
    var newTr = "<tr>";
    for (var i = 0; i < columnNum - 1; i++) {
      if (parent[0].cells[i].tagName == "TH") {
        if (!parent[0].cells[i + 1]) {
          newTr = newTr + "<td></td>";
        } else if (parent[0].cells[i + 1].tagName == "TH") {
          if (!table[0].rows[index + 1]) {
            newTr = newTr + "<th scope='" + parent[0].cells[i].scope + "'></th>";
          } else if (table[0].rows[index + 1].cells[i].tagName == "TH") {
            newTr = newTr + "<th scope='" + parent[0].cells[i].scope + "'></th>";
          } else {
            newTr = newTr + "<td></td>";
          }
        } else {
          newTr = newTr + "<th scope='" + parent[0].cells[i].scope + "'></th>";
        }
      } else {
        newTr = newTr + "<td></td>";
      }
    }
    newTr = newTr + "</tr>";
    parent.after(newTr);
    this.addControlTable();
  };
  
  Cms_Column_Table.prototype.appendRight = function () {
    var cellIndex = this.tableDom[0].cellIndex - 1;
    var table = this.tableDom.parent().parent();
    this.removeControlTable();
    for (var i = 1; i < table[0].rows.length; i++) {
      if (table[0].rows[i].cells[cellIndex].tagName == "TH") {
        if (!table[0].rows[i + 1]) {
          $(table[0].rows[i].cells[cellIndex]).after("<td></td>");
        } else if (table[0].rows[i + 1].cells[cellIndex].tagName == "TH") {
          if (!table[0].rows[i].cells[cellIndex + 1]) {
            $(table[0].rows[i].cells[cellIndex]).after("<th scope='" + table[0].rows[i].cells[cellIndex].scope + "'></th>");
          } else if (table[0].rows[i].cells[cellIndex + 1].tagName == "TH") {
            $(table[0].rows[i].cells[cellIndex]).after("<th scope='" + table[0].rows[i].cells[cellIndex].scope + "'></th>");
          } else {
            $(table[0].rows[i].cells[cellIndex]).after("<td></td>");
          }
        } else {
          $(table[0].rows[i].cells[cellIndex]).after("<th scope='" + table[0].rows[i].cells[cellIndex].scope + "'></th>");
        }
      } else {
        $(table[0].rows[i].cells[cellIndex]).after("<td></td>");
      }
    }
    this.addControlTable();
  
negative.code:         }
          return false;
        }
        if (tbody[0].rows[i + 1].cells[cellIndex].tagName == "TH") {
          alert("<%= I18n.t("cms.column_table.cant_append_left") %>");
          this.addControlTable();
          var tableMenu = $('.table-menu');
  