Can't edit blocks when links applied - Concrete5.8

Permalink
I have a site that has been converted from an html site. When I insert the <a href> before the <div> the link works but the block cannot be edited, instead of a green outline there is a white one around the block.

<a href="menu.html">
<div class="home_tab">
<?php $a = new Area('hometab'); $a->display($c); ?>
</div></a>

What am I doing wrong?

 
mnakalay replied on at Permalink Reply
mnakalay
I would say that using a whole area for just a link is probably not a great idea. What are you trying to achieve with that? There might be a better way?

It looks like you're trying to create tabs?
alan1948 replied on at Permalink Reply
They are tabs, the original design has rectangular blocks with text inside and the whole block is 'active'. In concrete5 I can just link the text and this works and the block is editable, but I would prefer this website to match the original.
JohntheFish replied on at Permalink Reply
JohntheFish
You can use my safe html template - see the marketplace. That will prevent your link html from interfering with edit mode.

https://www.concrete5.org/marketplace/addons/safe-html/...
alan1948 replied on at Permalink Reply
Thank you for that, I will try it out.