Transforms being an important bridge between blocks, we should make it easier to bump from Quote to Pullquote (and vice-versa), especially since there is currently no direct path from Paragraph to Pullquote (only to Quote).
I'm fine not adding Paragraph -> Pullquote if we're concerned about overcrowding the block switcher, as long as we have Paragraph -> Quote -> Pullquote.
Marking as bug, as we should address this soon.
I'll work on this for my first issue.
@mcsf Where are a block's transformation options set? I've looked through the code base and have the general idea. But I can't find anything specifying the transformations for a given block.
You add this to the settings of the block. See for example the cover Image block: https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/cover-image/index.js#L78
@dlaub3: thanks for looking at this! Soean beat me to the answer.
The transformation API currently lacks documentation, but a lot can be learnt by example. Looking at transforms: in the index files for Cover Image, Quote, etc. should help you get started.
@mcsf Just an idea: conversions such as "Paragraph -> Quote -> Pullquote" could be detected automatically and applied in a row. There should be no need to provide all these. Anyway, this is out of scope of this issue. :)
Yeah. I believe we chatted about this long ago. I could see it as part of refractors in 5.1. :)
@dlaub3: let me know if you need anything else, and how soon you’re planning on tackling this!
I'll be able to work on this tomorrow evening. If that's not soon enough
someone else may work on it and I'll find another issue.
On Tue, Oct 16, 2018 at 7:00 AM Miguel Fonseca notifications@github.com
wrote:
Yeah. I believe we chatted about this long ago. I could see it as part of
refractors in 5.1. :)@dlaub3 https://github.com/dlaub3: let me know if you need anything
else, and how soon you’re planning on tackling this!—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/WordPress/gutenberg/issues/10548#issuecomment-430194326,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQtSdsytQEILq3FSJOopk2bzXrBWrh3Fks5ulbw_gaJpZM4XZSsl
.
https://github.com/WordPress/gutenberg/pull/10683 addresses this issue
@dlaub3: Even though this got addressed separately, thank you for your involvement. I'll keep an eye out for things that can be labeled Good First Issue. :)
Most helpful comment
I'll work on this for my first issue.