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

remove properties-as-string shorthand #2989

Closed
ianstormtaylor opened this issue Aug 30, 2019 · 1 comment
Closed

remove properties-as-string shorthand #2989

ianstormtaylor opened this issue Aug 30, 2019 · 1 comment

Comments

@ianstormtaylor
Copy link
Owner

Do you want to request a feature or report a bug?

Debt.

What's the current behavior?

Right now you can use a type string as a shorthand for properties in many places. I'd like to remove this because it's really not harder to properly write it out as an object and I think it makes the API harder to read when the shorthand is used.

So, for example...

editor.setBlocks('paragraph')

Becomes...

editor.setBlocks({ type: 'paragraph' })
@ianstormtaylor
Copy link
Owner Author

Fixed by #3093.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant