Getting the Text Editor to allow a block-level element inside of an <a> tag | Community
Skip to main content
Aug 16, 2017 2:40 PM UTC
Solved

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

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.
Accepted solution
Jan 22, 2018 7:37 PM UTC

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
Jan 22, 2018 7:37 PM UTC

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.

Translate