Changeset 827
- Timestamp:
- 05/09/07 12:20:00 (6 years ago)
- Files:
-
- 1 modified
-
trunk/plugins/TableOperations/table-operations.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/TableOperations/table-operations.js
r800 r827 15 15 // Object that will encapsulate all the table operations provided by 16 16 // HTMLArea-3.0 (except "insert table" which is included in the main file) 17 Xinha.Config.prototype.TableOperations = 18 { 19 'showButtons' : true // Set to false to hide all but inserttable and toggleborders buttons on the toolbar 20 // this is useful if you have the ContextMenu plugin and want to save toolbar space 21 // (the context menu can perform all the button operations) 22 } 23 17 24 function TableOperations(editor) { 18 25 this.editor = editor; … … 29 36 var toolbar = ["linebreak", "inserttable", "toggleborders"]; 30 37 38 31 39 for (var i = 0; i < bl.length; ++i) { 32 40 var btn = bl[i]; 33 41 if (!btn) { 34 toolbar.push("separator");42 if(cfg.TableOperations.showButtons) toolbar.push("separator"); 35 43 } else { 36 44 var id = "TO-" + btn[0]; … … 40 48 self.buttonPress(editor, id); 41 49 }, btn[1]); 42 toolbar.push(id); 43 } 44 } 50 if(cfg.TableOperations.showButtons) toolbar.push(id); 51 } 52 } 53 45 54 46 55 // add a new line in the toolbar
