Skip to main content
Angel_Ordax
Level 2
March 6, 2018
Question

Modules being duplicated and blocked - Email Editor

  • March 6, 2018
  • 2 replies
  • 3568 views

I've created a very functional template that has 37 modules and though most of the tests work fine for some reason while editing/creating new emails using the template, sometimes content gets duplicated and the editable sections become un-editable unless I delete them from the "Edit Code" window which then results in even weirder results. I've had this issue of content duplication on other templates before but very occasionally, is there a reason why this could happen? is it because there are a lot of modules on the template that the JS on the email editor gets corrupted? This is very annoying and it's very important for us to get this template running without any errors.

Thanks

For reference, the email is this one:

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Grégoire_Miche2
Level 10
March 6, 2018

HI Angel,

Common issues that will cause it to break:

  • nested editable elements
  • duplicate IDs
  • Unclosed tags

-Greg

Grégoire_Miche2
Level 10
March 6, 2018

Hi again Angel,

I gave a look at your code and it seems pretty clean.

I detected that module id="col-1-module" has the Mktoaddbydefault set twice.

Also, you should use mktoText rather than mktEditable, and I am not sure that setting them on <span> tags it a good idea. Use <div< instead. For images, use the mktoImg on a <div> too. mktEditable is inherited from v1 templates and is only there for backward compatibility.

-Greg

Justin_Cooperm2
Level 10
March 6, 2018

Agree with Greg's comments. Did removing the extra mktoaddbydefault solve this for you? I also would agree mktoText on <div> is the optimal way to define the editable text region for best results.

Justin