Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Set DisplayMode in Vue #100

Open
phoben opened this issue Jun 12, 2024 · 0 comments
Open

Unable to Set DisplayMode in Vue #100

phoben opened this issue Jun 12, 2024 · 0 comments

Comments

@phoben
Copy link

phoben commented Jun 12, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant