[thelist] Customising Dreamweaver

Wade Armstrong wade at runstrong.com
Fri Mar 1 12:19:00 CST 2002


on 3/1/02 7:35 AM, Olly Hodgson at gnarly at gmx.co.uk wrote:

> Does anybody know how to make Dreamweaver v4 automatically put background=""
> into <td> tags, unless I specify otheriwse?
>
> And stop it specifying background="whatever" in the <TR> tag?
>
> Also, putting alt="" into IMG tags would be nice.
>
> If someone has already done it, would they mind sharing? I know it can be
> customised, i'm just not entirely sure how...

<tip type="customizing dreamweaver" author="wade">
Dreamweaver is *entirely* customizable. The code used to generate HTML -
even the code used to generate the palettes - is all in HTML and JavaScript.

To change the behavior of a button in the Object palette, open your
Dreamweaver folder, find the Configuration folder inside that, and open the
Objects folder. Each folder in there corresponds to a pane of the Object
palette. Open up the [tag].js file to edit the output.

It's easy to change the JavaScript to produce the tag you want. To change
the img tag for XHTML compliance, change the line
return '<img src="' + newURL + '">'
to
return '<img src="' + newURL + '" />'
You can also add your own custom values in there.

More about customizing Dreamweaver:
http://www.macromedia.com/support/dreamweaver/custom.html

More about extending Dreamweaver:
http://www.macromedia.com/support/dreamweaver/extend.html
</tip>




More information about the thelist mailing list