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

[Example Request]: Remove "Copy link to block" option from ExtendedBlockActions in custom plugin #459

Open
1 task done
Jonaskouwenhoven opened this issue Mar 3, 2025 · 0 comments

Comments

@Jonaskouwenhoven
Copy link

What's the example?

When using ExtendedBlockActions in my custom plugin (LineupBlockOptions), I'm getting three options displayed:

  • Duplicate
  • Delete
  • Copy link to block

I only want the Duplicate and Delete options to appear in my custom plugin's block actions menu, without the "Copy link to block" option.

`import { UI} from '@yoopta/editor';

const { ExtendedBlockActions} = UI;

// Define props type
const LineupBlockOptions = ({ editor, block, props }) => {
return (
<ExtendedBlockActions
onClick={() => editor.setPath({ current: block.meta.order })}
>

</ExtendedBlockActions>

);
};

export { LineupBlockOptions };`

Is there a prop or configuration option for ExtendedBlockActions that allows me to specify which actions should be displayed? I'd like to keep only the Duplicate and Delete actions while removing the Copy link to block action.

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant