-
Notifications
You must be signed in to change notification settings - Fork 117
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
Allow preformatted background alpha and tidying to be set from child classes #869
Conversation
I hope I have tested the right hashes :) but i'm still seeing problems with the
and when loading it in GB-mobile i see the following (sorry for the low-res picture): |
Adding another thing i found on the problem reported above. If i set the caret beside the |
Hey Danilo, me and @mchowning have experienced a similar problem with quote block on the latest develop: wordpress-mobile/gutenberg-mobile#1555 |
Hey @daniloercoli, I have tested with your example: and I didn't find that BR tags are removed when GB-mobile is loaded |
Tried with WPAndroid and noticed an issue with these steps:
Is that |
You are totally right @marecar3 - it was a problem on my side with me not updating the Aztec hash on WP-Android. I guess i messed up with things when pointing to your branches. Sorry about that. I've also found another problem when merging an empty para block with the PRE block above. Steps to repro:
Edited: It seems the web is affected by the issue mentioned above. So not a problem introduced in this PR. |
This is a problem in Gutenberg code base it also happens on the web. |
Oh yes, we have mentioned that on Slack on Friday, but forgot to update the description here. At this point, if the parent PR passes testing phase we can merge this one. |
I tried #869 (comment) again but now I see that if I re-open the post the editor red-screens with block validation error. |
…ith invalid PRE block content sent to the JS side under some circumstances, even without actually changing the content of the block. Ref: wordpress-mobile/AztecEditor-Android#869 (comment)
👋 @hypest, if there are no new requests from your side, maybe we can merge this PR and start with a new tag release for Aztec Android? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Marko! Feel free to merge, create a release and update the WPAndroid and gutenberg-mobile PRs, thanks!
Oh, can you also link to the related WPAndroid and gutenberg-mobile PRs in the description @marecar3 ? Thanks! |
Thanks for the hint. Now they are added. |
Fix
This PR adds a method that can change preformatted background alpha color from the child class
and also adds method which can control tidying in AztecParser (we want to avoid tidying for
pre
block.Related PR's:
Gutenberg PR: WordPress/gutenberg#18777
Gutenberg-mobile PR: wordpress-mobile/gutenberg-mobile#1615
WPAndroid PR: wordpress-mobile/WordPress-Android#10868
Test
Test 1:
<br>
tags on the end of the text are removed frompre
after app is started.Test 2:
where value is set to 0, and see that background is transparent.
with
pre
block with multiple<br>
tags on the end of the text and check that they aren't removed.Review
@daniloercoli
Make sure strings will be translated:
strings.xml
as a part of the integration PR.