diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index e3e4dd9d7..a3ea42643 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +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 - `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 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);