Hi everyone!
I have a problem with automatic <a> insertion. If I put the next HTML code in source window:
```
<div>
<a href="#">
<h3>
Title
</h3>
<p>
Text text text
</p>
</a>
</div>
```
and then I click the "source" button to toggle between design mode and source again the code change to:
```
<p> </p>
<div class="">
<h3>
<a href="#">
Title
</a>
</h3>
<p class="">
<a href="#">
Text text text
</a>
</p>
</div>
<p> </p>
```
Instead of one <a> statement I got two and also there are some new <p> statements also. Is there any switch to cancel this auto feature off or is this a bug?
I have this with v2.1.0 and v2.1.1 beta and on DNN 7.3 and 7.4.
Kind regards
Comments: ** Comment from web user: tha_watcha **
I have a problem with automatic <a> insertion. If I put the next HTML code in source window:
```
<div>
<a href="#">
<h3>
Title
</h3>
<p>
Text text text
</p>
</a>
</div>
```
and then I click the "source" button to toggle between design mode and source again the code change to:
```
<p> </p>
<div class="">
<h3>
<a href="#">
Title
</a>
</h3>
<p class="">
<a href="#">
Text text text
</a>
</p>
</div>
<p> </p>
```
Instead of one <a> statement I got two and also there are some new <p> statements also. Is there any switch to cancel this auto feature off or is this a bug?
I have this with v2.1.0 and v2.1.1 beta and on DNN 7.3 and 7.4.
Kind regards
Comments: ** Comment from web user: tha_watcha **
Sorry i didnt read the html code correctly. The Problem with the code is that div and h3 tags inside a tags are not allowed directly allowed code. The editor only produces valid code, this can't be overrriden by any config setting.
You can read more about that "problem" here
http://ckeditor.com/forums/CKEditor/Wrapping-content-in-anchor-tags-inside-HTML-getting-reformatted