Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DotNetNuke Rad Text Editor Generates REALLY BAD HTMLDotNetNuke Rad Text Editor Generates REALLY BAD HTML
Previous
 
Next
New Post
12/5/2012 10:23 AM
 

DNN's "Rad Editor" text editor is pretty slick, and it's really nice to be able to configure it in the Host area. And its table editing abilities are great (most of the time). However, the formatting HTML that it renders can be very, very bad. Examples:

  • If the user changes formatting on a line or paragraph several times, existing markup is not cleared as needed, so you end up with nested nested nested waste markup, which actually does nothing except take up memory and bandwidth. This example is actually a small one, copied from an actual HTML module. I found one case that had <strong><strong><strong>...</strong></strong></strong> 17 blocks deep, with no text!
    <em></em><strong></strong><strong></strong><p style="margin: 0px; padding: 0px;"></p><div style="margin: 0in 0in 10pt;"></div><div style="margin: 0in 0in 10pt;"></div><div style="margin: 0in 0in 10pt;"></div>

  • The editor will decide on its own that you need a paragraph container, in inappropriate places. Like in a list item:
    <li>
         <p>Why do I need a paragraph here?</p>
    </li>


  • When backspacing to take out a line feed or an empty paragraph, the editor will decide on its own that you need a table to contain the paragraph you are working on:
    <table border="0" cellspacing="5" cellpadding="5" style="margin-top: 5px; width: 100%; display: inline ;">
         <tbody style="display: inline ;">
             <tr style="display: inline ;">
                 <td style="width: 50%; display: inline ;">
                     <p style="margin: 0px; padding: 0px; display: inline ;">All I did to create this table was backspace at the beginning of this paragraph!</p>
                 </td>
             </tr>
         </tbody>
     </table>
    
        
  • It's really sweet when the editor decides you need a table in a List Item !!!

Those automagic tables are nearly impossible to avoid, and more impossible to get rid of in the Rich Text editor. Once this stuff gets nested deep enough, it becomes impossible for the user to get the desired formatting. Then it becomes necessary to go directly into the HTML view to fix it. And when the user isn't HTML savvy, it generates support calls. Sometimes it gets so bad, the only real way to fix it is to copy the HTML into an HTML editor, fix it, then copy it back.

I'm not sure whether to post this as a bug to the Core Team or not. Is the Telerik editor better, even though it's not as easy to configure?

 
New Post
12/5/2012 3:16 PM
 
This tends to be a thorn in my side as well. The editor is nice but it creates way too much HTML.

Hopefully this thread gets some attention from DNN.

Mark
 
New Post
11/19/2018 9:30 AM
 
I have to edit home page HTML module content by using external program .how can i access the content and edit the content using c# program.Please help me to resolve the issue.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DotNetNuke Rad Text Editor Generates REALLY BAD HTMLDotNetNuke Rad Text Editor Generates REALLY BAD HTML


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out