vue-email-editor
vue-email-editor copied to clipboard
Unable to Set DisplayMode in Vue
I'm encountering a problem with setting the DisplayMode in Vue when using the vue-email-editor component. Despite my efforts, it doesn't seem to have any effect.
Here's the code snippet:
<EmailEditor
:project-id="projectId"
:min-height="minHeight"
:locale="locale"
:translations="translations"
:display-mode="displayMode"
:tools="tools"
:options="options"
ref="emailEditor"
@load="editorLoaded"
@ready="editorReady"/>
I also tried setting DisplayMode via a function:
self.vue.$refs.emailEditor.editor.setDisplayMode(cellType.Mode)
Neither approach works; the editor always opens in email mode. I have debugged and confirmed that cellType.Mode is indeed web.
Could you please advise if I am doing something incorrectly, or if there is a known issue or workaround for this?
Thank you!