From 64f310472e731f8f3a73727dbba0aab569dc1aac Mon Sep 17 00:00:00 2001 From: Pascal Jufer Date: Sat, 6 Apr 2024 22:37:40 +0200 Subject: [PATCH 1/4] Wrap content if it exceeds the width --- src/styles/block.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/block.css b/src/styles/block.css index d4288aae6..43087ad83 100644 --- a/src/styles/block.css +++ b/src/styles/block.css @@ -16,6 +16,10 @@ margin-top: 0; } + &__content [contenteditable] { + word-break: break-word; + } + &--selected &__content { background: var(--selectionColor); From 72ab8fc257be274ad9d0f2aeb1dd1775f053c72c Mon Sep 17 00:00:00 2001 From: Pascal Jufer Date: Wed, 30 Oct 2024 01:01:28 +0100 Subject: [PATCH 2/4] Add changelog entry --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 43fca419a..73e54b6c9 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -7,6 +7,7 @@ - `Fix` - Fix selection of first block in read-only initialization with "autofocus=true" - `Fix` - Incorrect caret position after blocks merging in Safari - `Fix` - Several toolbox items exported by the one tool have the same shortcut displayed in toolbox +- `Fix` - Ensure content is wrapped if it exceeds the width of the editor area ### 2.30.6 From 76f94b061a0be38c5e75ae5097887d728a66ffbd Mon Sep 17 00:00:00 2001 From: Pascal Jufer Date: Thu, 27 Feb 2025 08:54:16 +0100 Subject: [PATCH 3/4] Mention Firefox in changelog --- docs/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 73e54b6c9..e5ddf07bd 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -7,7 +7,7 @@ - `Fix` - Fix selection of first block in read-only initialization with "autofocus=true" - `Fix` - Incorrect caret position after blocks merging in Safari - `Fix` - Several toolbox items exported by the one tool have the same shortcut displayed in toolbox -- `Fix` - Ensure content is wrapped if it exceeds the width of the editor area +- `Fix` - Ensure content is wrapped if it exceeds the width of the editor area in Firefox ### 2.30.6 From 8f7efb717cd117a691040f9d06bd39c122d2cb4c Mon Sep 17 00:00:00 2001 From: Pascal Jufer Date: Tue, 13 May 2025 12:58:39 +0200 Subject: [PATCH 4/4] Slightly adjust changelog entry --- docs/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index a3ea42643..f35ea8497 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,7 +8,7 @@ - `Fix` - Fix selection of first block in read-only initialization with "autofocus=true" - `Fix` - Incorrect caret position after blocks merging in Safari - `Fix` - Several toolbox items exported by the one tool have the same shortcut displayed in toolbox -- `Fix` - Ensure content is wrapped if it exceeds the width of the editor area in Firefox +- `Fix` - Ensure content is wrapped if it exceeds the width of the editor area, mainly concerning Firefox - `Improvement` - The current block reference will be updated in read-only mode when blocks are clicked - `Fix` - codex-notifier and codex-tooltip moved from devDependencies to dependencies in package.json to solve type errors - `Fix` - Handle whitespace input in empty placeholder elements to prevent caret from moving unexpectedly to the end of the placeholder