-
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
Add pullquote tranformations #23562
Add pullquote tranformations #23562
Conversation
Size Change: +261 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
52eacc3
to
a0f8f67
Compare
attributes.map( ( { content } ) => | ||
create( { html: content } ) | ||
), | ||
'\u2028' |
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.
I don't feel confident that this is the optimal way to do it, so I'll defer to @ellatrix for review. This includes the logic further down in the 'to'
transforms.
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.
This was actually the same as Quote
. Didn't really dig into that. Seemed to me a Business Logic decision that has been made, to transform the first part only..
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.
You're right. That's good enough for me!
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.
This does highlight the potential for Pullquote to be a block variation of Quote, but that's something to consider some other time.
LGTM!
Thanks @mcsf ! I totally agree that these two are so similar that could be handled together in the future. |
9452e48
to
a83ec90
Compare
Description
Resolves #14159
Now, the
Pullquote
transformations are handled in an inconsistent way compared to aQuote
block, that is quite similar.For example you can achieve transformation from a
Paragraph
toPullquote
, by first transforming theParagraph
to aQuote
and then theQuote
to aPullquote
.This PR will allow
Pullquote
block to be transformed from and to all the available blocks that are allowed forQuote
block.How has this been tested?
Screenshots
Types of changes
Checklist: