| | |
| | | /**
|
| | | * $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.
|
| | |
| | | ], 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) {
|
| | |
| | | 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;
|
| | |
|
| | |
| | | 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;
|
| | |
|