Skip to content

fix: 0.2.2 - #35

Merged
Francois-Francois merged 2 commits into
mainfrom
fix/0.2.2
Oct 23, 2026
Merged

Francois-Francois merged 2 commits into
mainfrom
fix/0.2.2

Conversation

@Francois-Francois

Copy link
Copy Markdown
Contributor

Fixes found while testing 0.2.1 in a production host (an editor inside the edit form of an admin page).

  • Link field and Enter: the link form of the text toolbar was a nested <form>. Enter submitted it, and even prevented, the submit event reached the listeners of the host page (a host that restores its layout on submit lost its styles). It is now a plain group, Enter applies the link. Enter in any input of the editor never submits the host form.
  • Closing before the preview is loaded: the initial preview request wrote into an iframe that no longer existed (Cannot read properties of null (reading 'contentDocument')). The request is aborted when the preview is unmounted.
  • Preview buttons: the invisible "add a component" zone covered the whole edge of the block, around the move and delete buttons: a click next to an arrow opened the component list. The clickable zone now stays in the middle third, the line still spans the whole block.
  • Translations: the texts added in 0.2 (toolbar tooltips, "New tab" option, invalid URL message, preview buttons, device names) and the hardcoded "Tous les blocs" / "Ajouter un bloc" go through the translations. A host translation without the new keys falls back to English. English stays the default.

Tests: vitest (translations), Cypress compat (Enter in the link field and in a text field, French toolbar, closing before the preview, no add zone around the move buttons; the last one fails on 0.2.1).

Merging releases 0.2.2 (publish.yml).

…nd translations

- Enter in the link field no longer submits the host form (no nested form, Enter in an input never submits it)
- closing the editor before the preview is loaded no longer throws
- the add zone of the preview stays in the middle, away from the move and delete buttons
- every text added in 0.2 goes through the translations (toolbar, link option, preview buttons, devices), with an English fallback for host translations missing a key
@Francois-Francois
Francois-Francois merged commit 49d0746 into main Oct 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant