Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text auto change to list after input - #1949

Open
1 task done
haorendashu opened this issue Jun 25, 2024 · 1 comment
Open
1 task done

Text auto change to list after input - #1949

haorendashu opened this issue Jun 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@haorendashu
Copy link

haorendashu commented Jun 25, 2024

Is there an existing issue for this?

Flutter Quill version

9.4.6

Steps to reproduce

In a windows version, after i input - and a space before a new line.

Expected results

keep input and don't change style.

Actual results

The editor will auto change to a list style like this:

liststyle

But in mobile version, it not change.

I think in pc and mobile it both shouldn' change the style.

@haorendashu haorendashu added the bug Something isn't working label Jun 25, 2024
@AtlasAutocode
Copy link
Collaborator

The style change to a bulleted list appears to be by design.

raw_editor_state.dart includes code to recognize keys '1.' and space at the start of a line and convert it to a numbered list which I think is very intuitive. (I wasn't aware of this shortcut - thank you for pointing it out)
The same code processes hyphen/dash followed by a space and converts to bulleted list which is a little less intuitive but is a convenient way of easily creating bullet lists.

In my testing on windows and android emulator, both behaved the same way.
I have noticed that the characters have to start the line. If you enter the keys space+dash+space it will not be converted. Is it possible that this is why it did not appear to occur on mobile?

If you feel that this conversion should not occur, then perhaps the best option is for you to enter a 'feature request' and the maintainers can review and decide what is best for all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants