Quantcast
Channel: CKEditor™ Provider for DNN®
Viewing all articles
Browse latest Browse all 1992

Commented Unassigned: Automatic insertion [7971]

$
0
0
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>&nbsp;</p>
<div class="">
<h3>
<a href="#">
Title
</a>
</h3>
<p class="">
<a href="#">
Text text text
</a>
</p>
</div>
<p>&nbsp;</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 **

Try the following solution

Go to the Editor Settings -> Editor Config Tab -> and change the setting Protected Source to ...

```
[( /<i class[\s\S]*?>[\s\S]*?<\/i>/gi ),( /<span class[\s\S]*?>[\s\S]*?<\/span>/gi ),( /<em class[\s\S]*?>[\s\S]*?<\/em>/gi ),( /<button class[\s\S]*?>[\s\S]*?<\/button>/gi )]
```


Viewing all articles
Browse latest Browse all 1992

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>