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

[FEATURE] Simplify API for creating custom plugin

Open Darginec05 opened this issue 1 year ago • 1 comments
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

Darginec05 avatar May 02 '24 15:05 Darginec05

Also should be added hook to add events to specific block. Something like useBlockEvents

Darginec05 avatar May 03 '24 23:05 Darginec05

Available in v4.5.0

Darginec05 avatar Jun 05 '24 17:06 Darginec05