DNN Forums

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

Formatting Comments

 4 Replies
 1 Subscribed to this topic
 28 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 33
Growing Member
New Poster
New Poster
Congrats on posting!

Hey, folks. Appreciate your help.
The DNN code editor reformats comments when the HTML module is saved. For example, this is what I want: 

 <!-- End Card -->
 <!-- End Book Item -->
<!-- Insert new book card above this line -->
 <!-- End Row -->
 <!-- End Container -->

But when I save the HTML module, this is what I get: 


<!-- END CARD -->

<!-- END BOOK ITEM --><!-- INSERT NEXT BOOK ABOVE HERE -->

<!-- END ROW -->

<!-- END CONTAINER -->

Is there a way to lock in my formatting when the code is saved? Thank you.

John  

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!
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!

Hmm, I'm not sure if my previous link helps against reformatting.
When you want exact control over the HTML, IMO it's better to use a structured content module like Open Content or 2sxc

The DNN HTML Editor is not a very good fit in that case (and not made for it).

Growing Member
Posts: 33
Growing Member
New Poster
New Poster
Congrats on posting!
Thank you, Timo. In my case there is no additional content to allow. Everything I enter is there, it's just no longer WYSIWIG. I'll look into your other suggestion.

John
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

As a general rule, there still remains not a single HTML editor that handles the HTML source exactly the way some of us "power users" will expect.  Something will undoubtedly get changed or removed.  A large number of these instances are related to the syntax updating faster than the various online editors.  However, the biggest reason is that most of these editors are trying to protect the rest of the users that are using the same tool.  

So, as Timo suggested, if you want full and unbridled control over your HTML, you really should use any structured content solution out there.  Lucky for us all, the two most popular ones are both open-source and listed for you below.  😎 

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