-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Paragraph block: inline styling for mark
elements stripped out
#48536
Comments
This issue is stale because it has been 180 days with no activity. You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation and apply one of relevant issue close labels. |
Scrubbed request. I have confirmed the I expect this is intentional - especially on Simple site plans which don't permit custom CSS. @simison, can you see the use of |
Yes, we will need this for WordPress/gutenberg#34680 I gave Team Calypso heads up earlier this week. Cc @fullofcaffeine |
Thank you! |
We've never blocked the use of inline styles on free sites, and it works for, e.g. |
This has been fixed in D68544-code (also related to #57036), so closing this issue. |
Steps to reproduce
<mark></mark>
tags.style
attribute and set a custom background colorExample:
<p>This is <mark style="background-color:red;">some</mark> text</p>
What I expected
For the text to be highlighted in the custom color I'd added in the
style
attribute.What happened instead
On the published post the text is highlighted in the default yellow color based on the browser's built-in styles
On leaving the editor and reopening it, the
style
attribute has been stripped from themark
element.This issue appears to be specific to WordPress.com - on a self-hosted WordPress site this works as expected, so I'm guessing this might have to do with the safe-list we maintain for what HTML tags and attributes can be used on WordPress.com, rather than an issue with the editor itself, so this is more of an enhancement request than a bug report - until text highlighting is natively added in the block editor, can we at least ensure that WordPress.com site owners can use all the HTML tags and attributes that allow them to do this manually?
Context / Source
Discovered while testing a solution for a user question in https://wordpress.com/forums/topic/redacting-text/.
The text was updated successfully, but these errors were encountered: