@themarioga/grid-editor 9.2.4 → 9.2.6

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,30 @@ 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.6] - 2026-11-22
9
+
10
+ ### Fixed
11
+ - `getHtml({ keepEditing: true })`, `getPlainHtml({ keepEditing: true })`
12
+ and the autosave plugin, which read through it, no longer load the
13
+ canvas's images or run their `onerror`. The copy they read was made in the
14
+ page's document, where an `<img src>` starts loading even detached; it is
15
+ now made in an inert document, as `getPlainHtml` already parses. The same
16
+ goes for what an open text's editor holds, put into the copy. A plugin's
17
+ `cleanMarkup` is handed that copy: a node it makes with `document` and
18
+ puts into it is taken in as before, but `root.ownerDocument` is no longer
19
+ `document`.
20
+
21
+ ## [9.2.5] - 2026-11-22
22
+
23
+ ### Fixed
24
+ - Autosave: `clearDraft` now makes the html there is the base of the drafts
25
+ that follow. A page that saved, then kept editing, and was loaded again
26
+ with the html it saved was not offered the draft of those later changes:
27
+ the draft still named the html the editor started from. With the source
28
+ view open, the base is what `getHtml` gives, and what is typed in the
29
+ source after it is a draft once the view closes. While the restore
30
+ question is up the base does not change.
31
+
8
32
  ## [9.2.4] - 2026-10-27
9
33
 
10
34
  ### 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 -