[GH-ISSUE #5009] [Bug](maybe =) theme inconsistency and cursor position #2231

Open
opened 2026-03-23 21:20:47 +00:00 by mirror · 0 comments
Owner

Originally created by @moolight-seashell on GitHub (Mar 29, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5009

Bug Description

I d'ont really know if this is a bug but anyway

How to Reproduce

let's start with a simple text
Capture d’écran du 2024-03-28 21-30-15
now i type "ABC"
Capture d’écran du 2024-03-28 21-29-48

by now evrythings looks ok
now let's try at the beginning of the text
Capture d’écran du 2024-03-28 21-30-10
an write "ABC" again
Capture d’écran du 2024-03-28 21-30-01
and nope i d'ont have styled text here

Expected Behavior

to make things easier to understand i will use parentesis based xml like and dots to represent spaces

this.is.an.(red)important(/red).text
the whole point is where to place "the cursor" when the user moves it

actually on front end,
"this is an |important text"
becomes in backend
'this.is.an.|(red)important(/red).text'

it probably should become
'this.is.an.(red)|important(/red).text' instead

same things for end of styled text section, this :
(red)this.is.a.colored.text(/red).not.this.one

should probably be either
(red)this.is.a.colored.text|(/red).not.this.one
or
(red)this.is.a.colored.text(/red).|not.this.one
but never
(red)this.is.a.colored.text.|(/red)not.this.one

Operating System

evry

AppFlowy Version(s)

evry

Screenshots

No response

Additional Context

No response

Originally created by @moolight-seashell on GitHub (Mar 29, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5009 ### Bug Description I d'ont really know if this is a bug but anyway ### How to Reproduce let's start with a simple text ![Capture d’écran du 2024-03-28 21-30-15](https://github.com/AppFlowy-IO/AppFlowy/assets/49676861/e8258360-b012-4249-9216-0080d6bee951) now i type "ABC" ![Capture d’écran du 2024-03-28 21-29-48](https://github.com/AppFlowy-IO/AppFlowy/assets/49676861/2e3080b9-c49a-4659-8725-816d60e3a098) by now evrythings looks ok now let's try at the beginning of the text ![Capture d’écran du 2024-03-28 21-30-10](https://github.com/AppFlowy-IO/AppFlowy/assets/49676861/ce6899d2-8683-4213-a0f2-7162259d23f2) an write "ABC" again ![Capture d’écran du 2024-03-28 21-30-01](https://github.com/AppFlowy-IO/AppFlowy/assets/49676861/362a14da-fcba-46fa-bdd4-237a8e465d8a) and nope i d'ont have styled text here ### Expected Behavior to make things easier to understand i will use parentesis based xml like and dots to represent spaces this.is.an.(red)important(/red).text the whole point is where to place "the cursor" when the user moves it actually on front end, "this is an |important text" becomes in backend 'this.is.an.|(red)important(/red).text' it probably should become 'this.is.an.(red)|important(/red).text' instead same things for end of styled text section, this : (red)this.is.a.colored.text(/red).not.this.one should probably be either (red)this.is.a.colored.text|(/red).not.this.one or (red)this.is.a.colored.text(/red).|not.this.one but never (red)this.is.a.colored.text.|(/red)not.this.one ### Operating System evry ### AppFlowy Version(s) evry ### Screenshots _No response_ ### Additional Context _No response_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2231
No description provided.