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

Add new features #295

Open
the-best-is-best opened this issue Jun 16, 2024 · 5 comments
Open

Add new features #295

the-best-is-best opened this issue Jun 16, 2024 · 5 comments
Labels
question Further information is requested

Comments

@the-best-is-best
Copy link

Please Add Subscript and Superscript

@MohamedRejeb
Copy link
Owner

Hi,
You can use Subscript and Superscript using SpanStyle:

richTextState.toggleSpanStyle(
    SpanStyle(
        baselineShift = BaselineShift.Subscript
    )
)

richTextState.toggleSpanStyle(
    SpanStyle(
        baselineShift = BaselineShift.Superscript
    )
)

@MohamedRejeb MohamedRejeb added the question Further information is requested label Jul 10, 2024
@the-best-is-best
Copy link
Author

Not work correctly please test it

@MohamedRejeb
Copy link
Owner

It's working fine for me, can you share some code.

Screenshot 2024-07-10 at 9 07 33 PM

@the-best-is-best
Copy link
Author

Ok I will check and if any issue I will send video

@the-best-is-best
Copy link
Author

Please export it to html and import it

And will see issue in html

Because not make sup and sub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants