File tree Expand file tree Collapse file tree 3 files changed +911
-0
lines changed
Expand file tree Collapse file tree 3 files changed +911
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ npm-debug.log*
2727yarn-debug.log *
2828yarn-error.log *
2929example /.env
30+ example /.env
Original file line number Diff line number Diff line change @@ -137,6 +137,12 @@ const BasicExample = () => {
137137 console . log ( "dfsdf" ) ;
138138 } ;
139139
140+ const loadConvertDesign = ( ) => {
141+ const mailui = mailUiEditorRef . current ?. editor ;
142+ mailui ?. loadDesign ( unlayerTemplate ) ;
143+ console . log ( "dfsdf__" ) ;
144+ } ;
145+
140146 const loadListener = ( ) => {
141147 const mailui = mailUiEditorRef . current ?. editor ;
142148
@@ -362,6 +368,9 @@ const BasicExample = () => {
362368 < button className = "btn btn-sm btn-secondary" onClick = { loadTemplate } >
363369 Load Template
364370 </ button >
371+ < button className = "btn btn-sm btn-secondary" onClick = { loadConvertDesign } >
372+ Convert Unlayer
373+ </ button >
365374 < button className = "btn btn-sm btn-secondary" onClick = { loadDesign } >
366375 Load Design
367376 </ button >
You can’t perform that action at this time.
0 commit comments