thomascube
2009-07-13 92fc5398dbd24eefcd5fed23194addd6f41eebf8
program/js/tiny_mce/plugins/table/editor_plugin_src.js
@@ -1,5 +1,5 @@
/**
 * $Id: editor_plugin_src.js 853 2008-05-27 08:05:35Z spocke $
 * $Id: editor_plugin_src.js 953 2008-11-04 10:16:50Z spocke $
 *
 * @author Moxiecode
 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
@@ -32,6 +32,27 @@
         ], function(c) {
            ed.addButton(c[0], {title : c[1], cmd : c[2], ui : c[3]});
         });
         if (ed.getParam('inline_styles')) {
            // Force move of attribs to styles in strict mode
            ed.onPreProcess.add(function(ed, o) {
               var dom = ed.dom;
               each(dom.select('table', o.node), function(n) {
                  var v;
                  if (v = dom.getAttrib(n, 'width')) {
                     dom.setStyle(n, 'width', v);
                     dom.setAttrib(n, 'width');
                  }
                  if (v = dom.getAttrib(n, 'height')) {
                     dom.setStyle(n, 'height', v);
                     dom.setAttrib(n, 'height');
                  }
               });
            });
         }
         ed.onInit.add(function() {
            if (ed && ed.plugins.contextmenu) {
@@ -728,7 +749,7 @@
                        if (!trElm || !tdElm)
                           return true;
                        var grid = getTableGrid(tableElm);
                        var grid = getTableGrid(inst.dom.getParent(tableElm, "table"));
                        var cpos = getCellPos(grid, tdElm);
                        var lastTDElm = null;
@@ -759,7 +780,7 @@
                        if (!trElm || !tdElm)
                           return true;
                        var grid = getTableGrid(tableElm);
                        var grid = getTableGrid(inst.dom.getParent(tableElm, "table"));
                        var cpos = getCellPos(grid, tdElm);
                        var lastTDElm = null;