Search This Blog

Friday, December 31, 2010

How to Remove Unncessary Space Between lines in Dreamweaver?

  1. Open the file
  2. Click CTRL + F
  3. Select "Current document" in "Find in" (You can also select the folder if you have multiple files)
  4. Search in "Source code"
  5. Tick "Use regular expression"
  6. Type [\r\n]{2,} (without quotes) in "Find"
  7. Type \n (without quotes) in "Replace"
  8. Press "Replace All"

Monday, December 20, 2010

fck editor upload solved

To assign the filebrowser plugin to an element inside of a dialog box, set the "filebrowser" property. For example in _source/plugins/image/dialogs/image.js there is:
{
 type : 'button',
 hidden : true,
 id : 'browse',
 filebrowser : 'Link:txtUrl',
 label : editor.lang.common.browseServer,
 style : 'float:right',
},

Adding "Quick Upload" support

Again, to see how we can handle file uploads in our dialog box, we'll use working example from CKEditor. In _source/plugins/image/dialogs/image.js there is a definition of the Upload tab:
{ id : 'Upload', hidden : true, filebrowser : 'uploadButton', label : editor.lang.image.upload, elements : [ { type : 'file', id : 'upload', label : editor.lang.image.btnUpload, style: 'height:40px', size : 38 }, { type : 'fileButton', id : 'uploadButton', filebrowser : 'info:txtUrl', label : editor.lang.image.btnUpload, 'for' : [ 'Upload', 'upload' ] } ] },