Skip to main content
Silverwulf
Known Participant
June 12, 2017
Answered

Stop rewriting my code

  • June 12, 2017
  • 3 replies
  • 1823 views

Is there an easy / simple way to make Dreamweaver stop rewriting my code?

I have an input, it looks like this:

<cfinput type="text" id="txtIID" name="txtIID" value="#txtIID#" class="form-control" disabled="#isDisabled#">

The file saves fine as is with that proper format, but when I close the file and open it back up again, Dreamweaver rewrites that input to look like this:

<cfinput type="text" id="txtIID" name="txtIID" value="#txtIID#" class="form-control" disabled>

This might not be an issue if I had just the one. I could probably rewrite it by hand each time. Unfortunately there are about 4 dozen inputs on the page.

I've already looked into Dreamweaver's Preferences/ Code rewriting and Linting options and those don't seem to have an affect upon this issue.

Is there somewhere else I should be looking to turn off this behavior?

    This topic has been closed for replies.
    Correct answer Preran

    https://forums.adobe.com/people/Jon+Fritz+II  wrote

    I can confirm that the same re-write bug also exists in today's update, CC 2017.5 Build 9878.

    Yeah, after the update yesterday I was holding out slim hope, but no such luck.


    A quick update:

    It looks like there was no bug logged for this issue previously with the team. The team has logged a bug after they were able to reproduce this issue, and they hope to fix it in a future update.

    To ensure that the team is aware of bugs reported here, please log your request here providing all details Adobe Dreamweaver CC: Feature Ideas

    My team and the product team do our best to log bugs that you report on the forums, but we miss some in the process. Posting it using the link above will help us better track bug requests.

    Thanks,

    PReran

    3 replies

    Niharika Jha
    Adobe Employee
    Adobe Employee
    August 29, 2017

    Hi,

    We have fixed this issue for the next Dw release, you can verify it now if you are a Dw Pre-release user or you can verify it later when we make the release public.

    Thanks for all your support and feedback.

    Regards,

    Niharika Gupta

    Adobe Dreamweaver

    BenPleysier
    Community Expert
    Community Expert
    June 12, 2017
    • For XHTML, <input type="text" disabled="disabled" /> is the valid markup.
    • For HTML5, <input type="text" disabled /> is valid and used by W3C on their samples.
    • In fact, both ways works on all major browsers.

    Even in ColdFusion you will find that

    <cfinput type="text" id="txtIID" name="txtIID" value="#txtIID#" class="form-control" disabled>

    is the correct format

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    pziecina
    Legend
    June 12, 2017

    Sorry Ben, but no code editor should re-write anything, flag it as incorrect maybe, re-write never.

    BenPleysier
    Community Expert
    Community Expert
    June 12, 2017

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Jon Fritz
    Community Expert
    Community Expert
    June 12, 2017

    I can confirm the same bug exists in DWCC 2017.1 under Windows 7.

    It's the same as the javascript rewrite bug Adobe fixed a little while back. The page looks correct when saved, but when reopened, it appears to rewrite the code.

    The correct code is actually still in the page at this point (you can check by opening in notepad), however any change to the page and subsequent save in DW finalizes the rewrite.

    Go to Help > Submit Bug/Feature request to report it to the dev team.

    This kind of rewriting is inexcusable. Even if Adobe wants CF developers to switch to Cold Fusion Builder. DW shouldn't arbitrarily rewrite code it doesn't understand/support.