#583 Editing in Source and going back to Design not working right


Windows 7 x64
KompoZer 0.8b2

The problem is when I do some major editing in the Source mode and then change to the Design mode, all of my changes I made in Source are eliminated like they were never made. I've attached a file that I made so you can follow how this happens and easily duplicate it.

1. Open the attached file in KompoZer.
2. Go into the "Source" view.
3. Delete the following text: "problem in Windows 7 x64"
4. Now, change back to the "Design" mode.
5. The text you deleted in Step #3 is still there when it isn't suppose to be.

I've been able to duplicate this 100% of the time in different files I've been working with.

There is however, one way to prevent this from happening. And that is to save your file before you go from the Source to Design mode. However, you don't always want to do that encase your trying to see if you made the correct changes.


  • rickmastfan67

    File to use to dupliate problem

  • Confirmed. WTF?!?
    Working on it right now.

    -- kazé, kompozer lead dev

    • priority: 5 --> 9
  • This bug doesn't occur on 0.8b1 (regression).

    This bug isn't windows-specific, I see it on Linux (Ubuntu Hardy).

  • Doh! A line is missing in editor.js...

    Index: editor.js

    --- editor.js (révision 208)
    +++ editor.js (copie de travail)
    @@ -2168,6 +2168,7 @@
    else {
    if (previousMode >= kEditModeSource) {
    + RebuildDocumentFromSource();
    // re-enable inline spell checking
    var showDisableSpellCheckWarning = gPrefs.getBoolPref("editor.showDisableSpellCheckWarning");
    if (showDisableSpellCheckWarning) {

    Sorry for that stupid mistake, we'll publish another beta as soon as possible. Boy, the l10n lead is gonna hate me for this one. :-s

    • status: open --> closed
  • fixed with révision 212.

    • status: closed --> closed-fixed
    • labels: 870480 --> Source View