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

underline and text color selectors in TinyMCE don't do anything #790

Closed
aschweigert opened this issue Jul 15, 2015 · 6 comments
Closed

underline and text color selectors in TinyMCE don't do anything #790

aschweigert opened this issue Jul 15, 2015 · 6 comments
Assignees
Labels
priority: normal Must be completed before release of this version of plugin. status: needs review type: question

Comments

@aschweigert
Copy link

Should they?

Or is there some way for us to hide them to avoid confusing people?

@aschweigert aschweigert added type: question priority: normal Must be completed before release of this version of plugin. labels Jul 15, 2015
@aschweigert aschweigert added this to the 0.5.5 - Story Elements milestone Jul 29, 2015
@aschweigert
Copy link
Author

see also #670

@benlk
Copy link
Collaborator

benlk commented Apr 7, 2016

Do we know why they don't work?

There's a mismatch between styles in posts and in the editor because the .entry-content selector is not used in the TinyMCE iframe. RNS has a partial fix for this, but we should adopt it in Largo.

@aschweigert aschweigert assigned rclations and unassigned benlk Sep 2, 2016
@rclations
Copy link

We have a function that removes span tags, but the underline & color options rely on span tags

Do we need that function?

@benlk
Copy link
Collaborator

benlk commented Sep 12, 2016

TIL that <u> is deprecated, and underlines are strongly discouraged: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u

That function appears to tell TinyMCE to only remove span tags without classes; we could probably expand that to also not remove span tags with inline styles?

Useful docs: https://www.tinymce.com/docs/configure/content-filtering/#valid_elements

@rclations
Copy link

@benlk thanks for the resource on this - super helpful

@aschweigert
Copy link
Author

yeah, i should say that i'm pretty opposed to allowing text color changes, but if the option is there it should at least work as intended. Hopefully WP does the sane thing and removes it in a future update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: normal Must be completed before release of this version of plugin. status: needs review type: question
Projects
None yet
Development

No branches or pull requests

3 participants