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

setTextBackgroundColor(int color)no work in android 7.0??? #154

Open
Kolzdm opened this issue Jan 26, 2018 · 1 comment
Open

setTextBackgroundColor(int color)no work in android 7.0??? #154

Kolzdm opened this issue Jan 26, 2018 · 1 comment

Comments

@Kolzdm
Copy link

Kolzdm commented Jan 26, 2018

Solved:

RE.setTextBackgroundColor = function(color) {
RE.restorerange();// it's redundant
document.execCommand("styleWithCSS", null, true);
document.execCommand('hiliteColor', false, color);
document.execCommand("styleWithCSS", null, false);
}

@pedrofneves
Copy link

Did you find a solution Kolzdm? I'm facing this problem too.

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