-
Notifications
You must be signed in to change notification settings - Fork 4.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
Editor: add suggestedPostFormat selector. #864
Conversation
Returns a suggested post format based on what blocks exist in the post.
I dig this! If we can make what currently says "Image" in the screenshot into a selectable dropdown, then in my book that closes #857. |
1585e7d
to
01e65f5
Compare
Yes, initial goal is read only. Then we can figure out how the interaction works—if you set it manually we should not overwrite your decision, etc. |
Nice! Maybe it could be a bit less strict? What about we look at the first object, and if there's no other objects in the post, suggest that object. E.g. If the first block is an image, but the rest text, it would still suggest "Image". As soon as you add a video/quote/table etc. though, it would revert to post. That way you can write something longer about the image. |
Anyway, just a suggestion. :) We can iterate of course. |
Absolutely, we can adjust the heuristics as we go. :) The only concern would be to be too eager in recognizing a pattern to the point it becomes an annoyance to people. Given we have limited awareness of what themes may be doing with these (adding all image format posts into a slideshow on the homepage, for instance) I think being more cautious could prove to be good, but we need to try. |
Worth also looking at what the mobile team has been doing here. I believe there's some inferrence going on in the native app. |
Returns a suggested post format based on what blocks exist in the post. This is an initial approximation to a flow that is able to set post format for the user based on the kind of content they have added.