We will some additional details about your setup to figure out what is wrong here
What Version of Dreamweaver are you using?
What version of HTML Editor?
Do you have Security Assist installed? If so, what version?
Can you provide some screen shots showing your Dreamweaver site definition settings? Do you have a testing server setup?
Is it a local testing server or remote?