Skip to content

Commit ff31353

Browse files
authored
Updated README to use the Unlayer editor instance
1 parent ed990a6 commit ff31353

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Next, you'll need to import the Email Editor component to your app.
4242
<button v-on:click="exportHtml">Export HTML</button>
4343
</div>
4444

45-
<EmailEditor ref="editor" v-on:load="editorLoaded" />
45+
<EmailEditor ref="emailEditor" v-on:load="editorLoaded" />
4646
</div>
4747
</div>
4848
</template>
@@ -57,17 +57,17 @@ Next, you'll need to import the Email Editor component to your app.
5757
},
5858
methods: {
5959
editorLoaded() {
60-
this.$refs.editor.loadDesign({});
60+
this.$refs.emailEditor.editor.loadDesign({});
6161
},
6262
saveDesign() {
63-
this.$refs.editor.saveDesign(
63+
this.$refs.emailEditor.editor.saveDesign(
6464
(design) => {
6565
console.log('saveDesign', design);
6666
}
6767
)
6868
},
6969
exportHtml() {
70-
this.$refs.editor.exportHtml(
70+
this.$refs.emailEditor.editor.exportHtml(
7171
(data) => {
7272
console.log('exportHtml', data);
7373
}

0 commit comments

Comments
 (0)