Skip to content

Custom block from own server #97

@knajjars

Description

@knajjars

Hi, I would like to know how to implement custom blocks on component initialization. Let's say I want to load a header and footer that I have stored somewhere locally.

 <EmailEditor
          ref={editor => (this.editor = editor)}
          onLoad={this.onLoad}
          onDesignLoad={this.onDesignLoad}
          options={{
            appearance: { theme: "dark" },
            blocks: [
              {
                /* HEADER BLOCK */
              },
              {
                /* FOOTER BLOCK */
              }
            ],
            mergeTags: [
              { name: "Salutation", value: "{{salutation}}" },
              { name: "First Name", value: "{{first_name}}" },
              { name: "Last Name", value: "{{last_name}}" }
            ]
          }}
        />

Is this possible to accomplish? There is not a lot of explanation on official docs regarding this. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions