From ad8895430b9d53e865dad58baf97b22d2ec75dc3 Mon Sep 17 00:00:00 2001 From: Pabloader Date: Wed, 25 Mar 2026 15:50:51 +0000 Subject: [PATCH] Replace all textarea to contenteditable --- .../storywriter/assets/chapters-editor.module.css | 1 + .../storywriter/components/chapters-editor.tsx | 1 + .../storywriter/components/character-editor.tsx | 7 ++++--- .../storywriter/components/location-editor.tsx | 7 ++++--- src/games/storywriter/utils/tools.ts | 15 +++++++++++---- 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/games/storywriter/assets/chapters-editor.module.css b/src/games/storywriter/assets/chapters-editor.module.css index 73f5a40..0bf6403 100644 --- a/src/games/storywriter/assets/chapters-editor.module.css +++ b/src/games/storywriter/assets/chapters-editor.module.css @@ -71,6 +71,7 @@ min-height: 80px; white-space: pre-wrap; word-wrap: break-word; + resize: vertical; &:focus { outline: none; diff --git a/src/games/storywriter/components/chapters-editor.tsx b/src/games/storywriter/components/chapters-editor.tsx index 73e7cb3..68a1e78 100644 --- a/src/games/storywriter/components/chapters-editor.tsx +++ b/src/games/storywriter/components/chapters-editor.tsx @@ -44,6 +44,7 @@ export const ChaptersEditor = () => { )}
{body}
{ const { currentStory, dispatch, connection, model } = useAppState(); @@ -174,12 +175,12 @@ export const CharacterEditor = () => {
Description
-