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

Can't change url color #42

Open
A-Kojic opened this issue Apr 3, 2016 · 2 comments
Open

Can't change url color #42

A-Kojic opened this issue Apr 3, 2016 · 2 comments

Comments

@A-Kojic
Copy link

A-Kojic commented Apr 3, 2016

Hi,
when I mark part of the text as a link, and try to change the color it doesn't effect it. It's true that it wraps link with font tag but it can't override link's style.

Example:
<font color="#ff0000"> <a href="http://google.com">Text</a> </font>
a { color: #2E8CFA; }

@A-Kojic
Copy link
Author

A-Kojic commented Apr 3, 2016

I found a quick workaround for this issue. Inside the url and color buttons I've added this code
$('font[color]').each(function() { $(this).css('color', this.color); $(this).find('*').css('color', this.color); });
The code finds all font tags, take their color attribute value and set it as a style to all child elements. This will override any style for < a > tag.

@kenshin54
Copy link
Owner

@A-Kojic Thanks for the workaround, I'm afraid I have no time to optimize this recently. The contribution is always welcome if you can fix it in a good way.

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