Changeset 550
- Timestamp:
- 08/10/06 21:49:07 (7 years ago)
- Files:
-
- 1 modified
-
trunk/htmlarea.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r549 r550 362 362 this.showLoading = false; 363 363 364 // size of color picker cells 365 this.colorPickerGranularity = '6px'; 366 // position of color picker from toolbar button 367 this.colorPickerPosition = 'bottom,right'; 368 364 369 /** CUSTOMIZING THE TOOLBAR 365 370 * ------------------------- … … 1438 1443 { 1439 1444 HTMLArea._loadback(_editor_url + 'popupwin.js', this.generate, this ); 1445 return false; 1446 } 1447 1448 if ( typeof colorPicker == 'undefined' ) 1449 { 1450 HTMLArea._loadback(_editor_url + 'popups/color_picker.js', this.generate, this ); 1440 1451 return false; 1441 1452 } … … 4227 4238 { 4228 4239 var editor = this; // for nested functions 4240 var btn = editor._toolbarObjects[cmdID].element; 4229 4241 if ( cmdID == 'hilitecolor' ) 4230 4242 { … … 4242 4254 } 4243 4255 } 4244 this._popupDialog( 4245 editor.config.URIs.select_color, 4246 function(color) 4247 { 4248 // selection not canceled 4249 if ( color ) 4250 { 4251 editor._doc.execCommand(cmdID, false, "#" + color); 4252 } 4253 }, 4254 HTMLArea._colorToRgb(this._doc.queryCommandValue(cmdID))); 4256 var picker = new colorPicker({cellsize:editor.config.colorPickerGranularity,callback:function(color){editor._doc.execCommand(cmdID, false, color);}}); 4257 picker.open(editor.config.colorPickerPosition, btn); 4255 4258 }; 4256 4259
