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

[FEATURE] Finish package @yoopta/renderer

Open Darginec05 opened this issue 1 year ago • 0 comments

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.

Just upgrating package @yoopta/renderer from v2 to v4

Proposed Solution

Package @yoopta/renderer is used for just rendering content without any edit tools and external packages. In simple it useful when you care about page perfomance and good SEO indicators

So, the solution is next:

  1. Every element inside block should have default renderers
  2. These default renderers can be replaced by custom renders
import Callout from '@yoopta/callout'

const CustomCalloutRender = () => ...

const plugins = [
  ...,
  Callout.extends({
     renders: {
       callout: CustomCalloutRender
     }
  })
]
  1. These renderers should be used in @yoopta/renderer package

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 21 '24 12:04 Darginec05