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

indent take effect for all lines not only first line. #3

Closed
li-xiaoyin opened this issue Jan 11, 2021 · 11 comments
Closed

indent take effect for all lines not only first line. #3

li-xiaoyin opened this issue Jan 11, 2021 · 11 comments

Comments

@li-xiaoyin
Copy link

No description provided.

@singerdmx
Copy link
Owner

looking into it

@singerdmx
Copy link
Owner

Indentation works, not just in the first line.
Could you provide examples to clarify the issue please?

@singerdmx
Copy link
Owner

Could you provide delta string for us to look into?

@li-xiaoyin
Copy link
Author

if the line is too long, all of auto wrapped lines will be take indent effect. i expect only first line has indent and other auto wrapped lines not.

@singerdmx
Copy link
Owner

singerdmx commented Jan 11, 2021

Understood. But our behavior has to be the same as React Quill.

image

You can try playing it here

@singerdmx
Copy link
Owner

It seems that on the web React Quill is doing the same. Then we do not want to make any difference.

@li-xiaoyin
Copy link
Author

ok thx . and can you give me some suggestion for implements this effect. like custom attributes and so on . how to do this.

@singerdmx
Copy link
Owner

You seem to want to add two spaces in front of the line?

@li-xiaoyin
Copy link
Author

yes i attempt to add \t or space in the front of the line, but is looks not very well. The effect of Indent is good but i can not find the source code about that. how can i implements the effect as same as indent?

@singerdmx
Copy link
Owner

I don't know

@li-xiaoyin
Copy link
Author

Thank you all the same

@qzl1075991 qzl1075991 mentioned this issue Jan 24, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants