Skip to content
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

Ability to set a "default block" #798

Closed
mtias opened this issue May 16, 2017 · 3 comments · Fixed by #1156
Closed

Ability to set a "default block" #798

mtias opened this issue May 16, 2017 · 3 comments · Fixed by #1156
Assignees
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript

Comments

@mtias
Copy link
Member

mtias commented May 16, 2017

Right now the default block is text. We should look at ways to make this configurable, either by a setting the user can set, or a plugin filter. This would allow the use of blocks like "freeform" or "advanced tinymce" as well as setting "image" as the default block for an instagram like experience.

@mtias mtias added the Framework Issues related to broader framework topics, especially as it relates to javascript label May 16, 2017
@youknowriad
Copy link
Contributor

This could have an impact on #565. We may show the inserter next to the default block (instead of an empty text block). But the way it's implemented right now seems to be easily changeable.

@aduth
Copy link
Member

aduth commented May 16, 2017

Yeah a problem with #565 is that it needs to know the shape how to consider a text block as empty. That works fine enough for a statically defined default block, but not one which can be overridden.

Maybe it's enough to treat a block as "new" until an UPDATE_BLOCK action is called on it?

@mtias
Copy link
Member Author

mtias commented May 16, 2017

I'm still ok with reserving the + for empty text blocks only and the bottom of the page. I'm still not sure about the + button flow in any case, and it may be worth exploring in quick prototypes before diving too deeply in implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants