Yoopta-Editor icon indicating copy to clipboard operation
Yoopta-Editor copied to clipboard

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

Open Jonaskouwenhoven opened this issue 9 months ago • 3 comments

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

  • [x] I agree to follow this project's Code of Conduct

Jonaskouwenhoven avatar Mar 03 '25 14:03 Jonaskouwenhoven

Good catch. I want to add possibility for full control Block action items

Darginec05 avatar Apr 13 '25 12:04 Darginec05

related https://github.com/yoopta-editor/Yoopta-Editor/issues/368

Darginec05 avatar Apr 20 '25 13:04 Darginec05

im currently having this blocker, was this feature worked on ?

tomideo1 avatar Aug 20 '25 19:08 tomideo1