Getting the Text Editor to allow a block-level element inside of an <a> tag | Community
Skip to main content
August 16, 2017
Solved

Getting the Text Editor to allow a block-level element inside of an <a> tag

  • August 16, 2017
  • 1 reply
  • 1676 views

I have a similar issue to this post on StackOverflow: html5 - How to configure TinyMCE to allow block-level elements inside anchor (a) tag? - Stack Overflow

I wish to put divs and other HTML block-level elements inside of a link tag <a>.  The editor is stripping out and correcting syntax that renders in modern browsers.

Can this setting be overwritten in some way to get the behavior I desire?

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

For those struggling with this, I found the markup is simply not allowed.  That being said, I needed my markup to be rendered that way, so I put the content into a Token, then invoked the token on my landing page and used CSS to style it.

1 reply

Accepted solution
January 22, 2018

For those struggling with this, I found the markup is simply not allowed.  That being said, I needed my markup to be rendered that way, so I put the content into a Token, then invoked the token on my landing page and used CSS to style it.