Skip to content

Commit 009eab7

Browse files
author
Garry Yao
committed
Merge branch 't/9726'
2 parents 1a3cc56 + 3f80067 commit 009eab7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

plugins/tabletools/dialogs/tableCell.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
1212
heightPattern = /^(\d+(?:\.\d+)?)px$/,
1313
bind = CKEDITOR.tools.bind,
1414
spacer = { type: 'html', html: ' ' },
15-
rtl = editor.lang.dir == 'rtl';
15+
rtl = editor.lang.dir == 'rtl',
16+
colorDialog = editor.plugins.colordialog;
1617

1718
return {
1819
title: langCell.title,
@@ -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)