unlayer / react-email-editor

Drag-n-Drop Email Editor Component for React.js
https://unlayer.com/embed
MIT License
4.51k stars 728 forks source link

AccessDeniedAccess error #387

Closed masudhossain closed 5 months ago

masudhossain commented 5 months ago

Trying to set this up today and I'm getting an accessdenied error AccessDeniedAccess DeniedS9KM2SMVX7DP3FZYByNT8xfIhSmZrOU9KguNzf0d1hD+qYdc7sD3lCXH1+d0wZMsrvzArwEfrMPLDRdjcvnz8LTxk2k=

import React, {useState, useRef} from 'react';
import EmailEditor, { EditorRef, EmailEditorProps } from 'react-email-editor';

const Demo = ({}) => {
  const emailEditorRef = useRef(null);

  const exportHtml = () => {
    emailEditorRef.current.editor.exportHtml((data) => {
      const { design, html } = data;
      console.log('exportHtml', html);
    });
  };

  const onLoad = () => {
    // editor instance is created
    // you can load your template here;
    // const templateJson = {};
    //  emailEditorRef.current.editor.addEventListener(
    //   'design:loaded',
    //   onDesignLoad
    // );
    emailEditorRef.current.editor.loadDesign(sample);
  };

  const onReady = () => {
    // editor is ready
    console.log('onReady');
  };

  return(
    <React.Fragment>
      <div>
        <div>
          <button onClick={exportHtml}>Export HTML</button>
        </div>

        <EmailEditor ref={emailEditorRef} onReady={onReady} />
      </div>
    </React.Fragment>
  )
}

export default Demo
j-f-r commented 5 months ago

+1 I'm having the same issue

bemlw commented 5 months ago

Same, happening on our live application. Tried to contact support but no response so far. We pay for the premium integration with Unlayer.

youlead-bow commented 5 months ago

+1 I'm having the same issue

mateolomas commented 5 months ago

Same issue

artturik commented 5 months ago

Same

dufernandezz commented 5 months ago

Same issue

sfiorotti commented 5 months ago

Same issue

bmaximo commented 5 months ago

Same issue!!

johnratignier commented 5 months ago

Same in 1.6.3 but seems not in 1.1.3 (may be not related, but what happens for our live app)

bemlw commented 5 months ago

Should be sorted now, support have confirmed and it is all working for us now.