-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Classic block: Make <!--more--> visible #5186
Conversation
e4035e2
to
d66fef9
Compare
margin: 15px auto; | ||
outline: 0; | ||
cursor: default; | ||
border: 2px dashed rgb( 186, 186, 186 ); |
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.
Where did this color come from? Should it be expressed as a hex value? Should it be one of the standard grays in our variables set?
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.
It came from the original image, just to get a sense of how switching away from the image would look, but yeah, I'd rather merge this with a proper var from our set.
Nice. Hard to test though, if I manually paste the following into text mode, I get a classic block, a more block, and a classic block:
It would be nice if the "Read More" label was still there. Is it because we can't make it translatable that it's gone? |
Apologies for the missing testing instructions — it was a commit-and-sleep evening. I'll update the description.
Agree that it would be preferable, and it would allow a clearer distinction between |
Oh, and just to be super clear for anyone, this only affects |
I was finally able to reproduce, using these steps:
Lorem ipsum dolor sit amet, ferri vidisse nam eu, ad nec copiosae mnesarchum vituperatoribus. Te brute dicunt sea, ut vis omnium menandri, ut sumo aliquam has. Eum aperiam interpretaris at, sea et recusabo expetenda, omnis tibique mea no. Pri suas partem ea, ius sonet numquam offendit cu, ad simul admodum pri. Eum cu unum choro albucius.
Lorem ipsum dolor sit amet, ferri vidisse nam eu, ad nec copiosae mnesarchum vituperatoribus. Te brute dicunt sea, ut vis omnium menandri, ut sumo aliquam has. Eum aperiam interpretaris at, sea et recusabo expetenda, omnis tibique mea no. Pri suas partem ea, ius sonet numquam offendit cu, ad simul admodum pri. Eum cu unum choro albucius. Prima ridens denique his te, ferri illum volumus an his. Eu vel dicat homero qualisque, vitae regione deserunt vis ei. Graeci incorrupte liberavisse no mea, saepe voluptaria usu ex, vis dicant euismod id. At dolor reprimique eos, quo altera detraxit moderatius id. Quo iudico utinam eu, ad alia munere mel.
I now see what you see, and it's definitely a big improvement from the old classic editors image. However I do think we should add a label there, if we can, to ambiguate between nextpage also. If that's difficult to do, however, perhaps we shouldn't put too much effort into this at all, and keep the old image as it was. Keep in mind we have #4926 that seeks to make the Classic block look even more like the classic editor. |
@jasmussen, I agree we should keep this low-effort.
We can do that, yes. Are you OK with duplicating the image (from |
It does seem like we should duplicate it. CC: @iseulde for the expert opinion on the cleanest approach here. |
Let's get this in as is just to get an indication, we can figure out updates later. I think it's better if we don't load any image here. |
Thanks for the fix! This is also an issue in core with the image... The annoying things is that images cannot have the before or after pseudo element, so we cannot really display text that way. We could swap this to HR, which is what was proposed for core, but that does change the behaviour a bit etc. Since this is here for backward compatibly, I would just do what we currently do in core and move over the image. In general I think we should make the classic block behave as much as possible as the editor in 4.9 and only change something if there are bad bugs with it. |
Interesting that core followed the same path. While working on this PR I reached the same conclusion about
Sounds acceptable. I merged this one as-is in order to unblock other PRs, but we can iterate. |
Description
Fixes #4958
Adds a visual reminiscent of that found in the classic editor, but doesn't resort to an actual image for the dashed effect. Furthermore, that classic image contained an English-only string ("read more"), whereas this change contains no strings.
How Has This Been Tested?
Screenshots (jpeg or gifs if applicable):
Types of changes
Checklist: