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

TextState saying whether it is bold, italic, normal, subscript and superscript. #105

Open
kasa111326 opened this issue Mar 27, 2017 · 2 comments

Comments

@kasa111326
Copy link

How do we know whether text state is bold or not when cursor move to particular position.

@beczesz
Copy link

beczesz commented Oct 8, 2020

Try this

 mEditor.setOnDecorationChangeListener((text, types) -> {
            Timber.d("onStateChangeListener() called with: text = [" + text + "], types = [" + types + "]");

            for (RichEditor.Type type : types) {
                switch (type) {

                    case BOLD:
                    case UNDERLINE:
                    case ITALIC:
                        break;

                }
            }
        });

@Piyushandroidch
Copy link

its not getting callback when style changes if we delete text.

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

3 participants