-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Editable: Adding a prop to opt-for formatting controls #618
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
Conversation
cdb9fc6 to
e61871c
Compare
blocks/components/editable/index.js
Outdated
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.
triple t :)
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.
🙃
e61871c to
b3dab99
Compare
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.
Why is only link being singled out here?
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.
Because it has a different behaviour (different onClick and isActive props)
|
Thanks! Looks good to me, though some comments in the code would be good to have. |
b3dab99 to
e8cac35
Compare
This PR adds a
formatttingControlsprop to theEditablecomponent to choose which formatting controls to show.Usage:
formattingControls={ [ 'bold', 'italic' ] }