Skip to content

Commit 96d9dcc

Browse files
author
Garry Yao
committed
Removed color picker buttons from cell dialog with no color dialog presence.
1 parent 9080b9c commit 96d9dcc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugins/tabletools/dialogs/tableCell.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
1414
spacer = { type: 'html', html: ' ' },
1515
rtl = editor.lang.dir == 'rtl';
1616

17+
var colorDialog = editor.plugins.colordialog;
1718
return {
1819
title: langCell.title,
1920
minWidth: CKEDITOR.env.ie && CKEDITOR.env.quirks ? 450 : 410,
@@ -323,7 +324,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
323324
selectedCell.removeAttribute( 'bgColor' );
324325
}
325326
},
326-
{
327+
colorDialog ? {
327328
type: 'button',
328329
id: 'bgColorChoose',
329330
"class": 'colorChooser',
@@ -339,7 +340,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
339340
this.focus();
340341
}, this );
341342
}
342-
}
343+
} : spacer
343344
]
344345
},
345346
spacer,
@@ -369,7 +370,8 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
369370
selectedCell.removeAttribute( 'borderColor' );
370371
}
371372
},
372-
{
373+
374+
colorDialog ? {
373375
type: 'button',
374376
id: 'borderColorChoose',
375377
"class": 'colorChooser',
@@ -386,7 +388,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
386388
this.focus();
387389
}, this );
388390
}
389-
}
391+
} : spacer
390392
]
391393
}
392394
]

0 commit comments

Comments
 (0)