Skip to content

Source plugin question #338

Closed Answered by petyosi
Prominence asked this question in Q&A
Jan 29, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You can add a prop for this component that sets which buttons are visible. Something like options={['rich-text', 'diff', 'source']}, where removing 'diff' would hide the tab. Happy to accept a PR, saw that you're doing great with the codebase so far.

You can also make that at the plugin level, although it's slightly more complex (you will need a Cell) and not really worth it, IMO.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Prominence
Comment options

Answer selected by Prominence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants