File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
plugins/tabletools/dialogs Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
14
14
spacer = { type : 'html' , html : ' ' } ,
15
15
rtl = editor . lang . dir == 'rtl' ;
16
16
17
+ var colorDialog = editor . plugins . colordialog ;
17
18
return {
18
19
title : langCell . title ,
19
20
minWidth : CKEDITOR . env . ie && CKEDITOR . env . quirks ? 450 : 410 ,
@@ -323,7 +324,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
323
324
selectedCell . removeAttribute ( 'bgColor' ) ;
324
325
}
325
326
} ,
326
- {
327
+ colorDialog ? {
327
328
type : 'button' ,
328
329
id : 'bgColorChoose' ,
329
330
"class" : 'colorChooser' ,
@@ -339,7 +340,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
339
340
this . focus ( ) ;
340
341
} , this ) ;
341
342
}
342
- }
343
+ } : spacer
343
344
]
344
345
} ,
345
346
spacer ,
@@ -369,7 +370,8 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
369
370
selectedCell . removeAttribute ( 'borderColor' ) ;
370
371
}
371
372
} ,
372
- {
373
+
374
+ colorDialog ? {
373
375
type : 'button' ,
374
376
id : 'borderColorChoose' ,
375
377
"class" : 'colorChooser' ,
@@ -386,7 +388,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
386
388
this . focus ( ) ;
387
389
} , this ) ;
388
390
}
389
- }
391
+ } : spacer
390
392
]
391
393
}
392
394
]
You can’t perform that action at this time.
0 commit comments