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

only remove <span> if it has no class & no style attribute #1295

Merged
merged 1 commit into from
Sep 12, 2016

Conversation

rclations
Copy link

fixes #790

Problem

Span tags used to markup underline and text colors via TinyMCE are being stripped in https://github.com/INN/Largo/blob/6a4eb174c54ddf3dcbf3c3aba36f7a1efc6d7b46/inc/editor.php#L71-L80

Solution

Update logic to remove span tags if they have no class and no style attribute - leaving the style markup for underline & text color alone

@aschweigert
Copy link

that seems ok to me

@aschweigert aschweigert merged commit fccd86c into WPBuddy:develop Sep 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants