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

[FEATURE] Add functionality for extending renders with custom rendering

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.

Proposed Solution

Should be available through extend:

Headings.HeadingThree.extend({
    renders: {
      "heading-three": ({ element, attributes, blockId, block }) => {
        return <Typograph as="h3" {...attributes}>{children}</Typograph>
      }
    }
  })

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 Apr 23 '24 15:04 Darginec05

Related to https://github.com/Darginec05/Yoopta-Editor/issues/122

Darginec05 avatar Apr 23 '24 15:04 Darginec05