Skip to content

Instantly share code, notes, and snippets.

@christian-rizza
Created June 22, 2016 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christian-rizza/0e200fa6a2a5e60c4507f9e44a121f8e to your computer and use it in GitHub Desktop.
Save christian-rizza/0e200fa6a2a5e60c4507f9e44a121f8e to your computer and use it in GitHub Desktop.
Enable nested elements on TinyMCE on Magento 1
//add any extra settings you'd like below
settings.valid_children = '+a[h1|h2|h3|h4|h5|h6|p|span|div|img]';
settings.force_br_newlines = true;
settings.force_p_newlines = false;
settings.forced_root_block = false;
//makes "placeholder" a valid element for inputs
settings.extended_valid_elements = '+div[*],+a[*],+span[*],input[placeholder|acc$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment