Yoopta-Editor
Yoopta-Editor copied to clipboard
[FEATURE] Simplify API for creating custom plugin
trafficstars
Is this a unique feature?
- [X] 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.
Yes
Proposed Solution
Should be added next methods for blocks:
- editor.blocks.[type].createElement
- editor.blocks.[type].deleteElement
- editor.blocks.[type].updateElement
- editor.blocks.[type].getElement
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
Also should be added hook to add events to specific block.
Something like useBlockEvents
Available in v4.5.0