Skip to content

Create generic component accepting any EditorToolbar and Editor #45

@natterstefan

Description

@natterstefan

Previously the EditorImage accepted any <Toolbar /> and <Editor /> component. They were rendered and connected with the onChange logic of the <LovelyEditor />.

We should add a generic component again so that one could easily add new Editors by simply adding them to the config like:

const blocksConfig = [
  {
    component: EditorGeneric,
    blockConfig: {
      component: CustomEditor,
      toolbar: CustomToolbar
    }
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions