@themarioga/grid-editor 9.2.4 → 9.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
 
8
+ ## [9.2.5] - 2026-11-22
9
+
10
+ ### Fixed
11
+ - Autosave: `clearDraft` now makes the html there is the base of the drafts
12
+ that follow. A page that saved, then kept editing, and was loaded again
13
+ with the html it saved was not offered the draft of those later changes:
14
+ the draft still named the html the editor started from. With the source
15
+ view open, the base is what `getHtml` gives, and what is typed in the
16
+ source after it is a draft once the view closes. While the restore
17
+ question is up the base does not change.
18
+
8
19
  ## [9.2.4] - 2026-10-27
9
20
 
10
21
  ### Added
package/README.md CHANGED
@@ -945,7 +945,7 @@ drafts, so the second saves nothing and says so in the console.
945
945
  | `disableAutosave()` | `Boolean` | Stops saving; the draft is kept |
946
946
  | `saveDraft()` | `Boolean` | Saves now, if the html changed, even when disabled; `true` when it wrote |
947
947
  | `getDraft()` | `Object` | `{ html, savedAt }`, or `null` |
948
- | `clearDraft()` | `Boolean` | Takes the draft away, as a page does once it has saved to its server. A save still waiting is dropped, and what there is now is where a new draft starts from: only a change after it saves again |
948
+ | `clearDraft()` | `Boolean` | Takes the draft away, as a page does once it has saved to its server. A save still waiting is dropped, and what there is now is where a new draft starts from: only a change after it saves again, and that draft is offered to an editor started again from the html there is now |
949
949
 
950
950
  The methods are there only when the plugin is loaded, and answer `false` or
951
951
  `null` when the browser gives the page no storage - a private window may not -