DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

CK Editor in DNN 9.x getting rid of tag and in-line SVG tags

 4 Replies
 2 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 37
Growing Member

I can put them in, but then they disappear from the code when I open CK Editor again... they are still visible within the generated HTML


Is this a bug?

Is there a way to stop this stripping of the coding?

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
1. you can switch the HTML editor to 'text only' - raw mode. Mind you, after saving and opening the HTML editor again, the editor might seem empty. If you switch to raw, you'll find the code again. So, don't 'save' where the HTML editor stripped your code.
2. You can edit what is being stripped in the HTML Editor manager. This resides under Site Settings - Site behaviour - More. In the tab 'Editor config' you'll find a lot of options. Look for the part that says RemoveFormat (tags and attributes).

The editor used to be on a page. Since it is part of the PersonaBar, you need to scroll up and down a bit, but it's all there.
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

This is a security function of the CKEditor that prevent users form entering unauthorised HTML.
You can read more about this "ACF" and what editor configuration you can change to prevent this here.
https://ckeditor.com/docs...st/examples/acf.html

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
I disabled ACF on one site (where I really am the only content editor) and that solved the problem in which the editor was removing class attributes from certain tags.
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!
Posted By Timo Breumelhof on 02 Jul 2020 09:29 AM

This is a security function of the CKEditor that prevent users form entering unauthorised HTML.
You can read more about this "ACF" and what editor configuration you can change to prevent this here.
https://ckeditor.com/docs...st/examples/acf.html

You can very granularly set ACF, simply swtiching it off is only advisable if there are no "external" users editing content (like in a forum).
For more granular configuration: https://dnncommunity.org/...-is-cleaning-my-HTML

 

 

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved