Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.