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

[FEATURE] Add commands API for every plugin #289

Closed
1 task done
Darginec05 opened this issue Sep 15, 2024 · 2 comments
Closed
1 task done

[FEATURE] Add commands API for every plugin #289

Darginec05 opened this issue Sep 15, 2024 · 2 comments

Comments

@Darginec05
Copy link
Collaborator

Is this a unique feature?

  • I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.

Every plugin should have their own commands API

Proposed Solution

import { PluginCommands } from '@yoopta/<plugin>'

Every command should have at least three commands:

  build<PluginName>Elements: (editor: YooEditor, options?: Partial<<PluginName>ElementOptions>) => <PluginName>Element;
  insert<PluginName>: (editor: YooEditor, options?: Partial<Insert<PluginName>Options>) => void;
  delete<PluginName>: (editor: YooEditor, blockId: string) => void;

Screenshots

No response

Do you want to work on this issue?

Yes

If "yes" to the above, please explain how you would technically implement this (issue will not be assigned if this is skipped)

No response

@Darginec05
Copy link
Collaborator Author

Implemented in #157

@Darginec05 Darginec05 mentioned this issue Sep 15, 2024
@Darginec05
Copy link
Collaborator Author

added in v4.8.0

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