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

Bold Italic and underline not working #59

Open
poojagaonkar opened this issue Mar 14, 2019 · 1 comment
Open

Bold Italic and underline not working #59

poojagaonkar opened this issue Mar 14, 2019 · 1 comment

Comments

@poojagaonkar
Copy link

Hello,
First of all amazing efforts on the tool.

I am trying to use the tool and it works fine for my requirement. The issue is when I select either bold/italic/underline, there is not change in the text I select or the the text I type after selecting these options. Rest all of the stylings work fine. Do I need to add something else to it?

@chinalwb
Copy link
Owner

Sorry I cannot reproduce it. Can you help me to reproduce the issue?

Try to get an instance of AREditor.
.getARE().getEditableText().getSpans(0, getText().length() - 1, Object.class);

This will return all of the applied styles' span.

If you have BOLD in selected status and type; or select characters first, then select BOLD, both actions will generate AreBoldSpan.

The expected result should be you should see such instance at least, and this span offers the BOLD style.

Invalid case would be you have no AreBoldSpan instances generated or they are there but just doesn't provide the correct style.

Let me know your case.

Thanks.

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