> Forums > Active Forums > Community Support > Telerik Editor - Format Code Block
Last Post 19 Oct 2010 12:45 AM by Will Morgenweck. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Jason Newell
Customers
Jason Newell
Post Count:6

--
15 Oct 2010 05:42 AM
    I'm needing a little help figuring out why ActiveForums 4.2.7 does not correctly render code formatted using the Telerik Editor Format Code Block command.  I can take the exact same html that gets generated from the command, paste it into a standard html module and everything renders correctly.  Looking at the generated html, I can see that my ActiveForums is creating div's with class 'afcodeblock' for each line in the editor.  I believe that is what is causing the rendered page to look more like a table.  If I have screwed something up with settings, skins, etc I can't figure it out.  On my development machine, I have reset everything that I can think of back to default.  Has anyone seen this issue or have suggestions on alternatives?

    DNN 5.5.1
    ActiveForums 4.2.7


    Jason Newell
    Applications Architect
    www.jasonnewell.net
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    15 Oct 2010 11:15 PM
    Hi Jason,
    The problem is that Active Forums automatically converts anything with code tags using the built in code painter. I have changed this in Active Forums 4.3 so that Active Forums will only parse [ code ] tags instead of < code >. Here is an example of how this is works in 4.3 now. The code block in this post was created by the telerik editor.
    http://www.activemodules.com/active...ofileitem/
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Jason Newell
    Customers
    Jason Newell
    Post Count:6

    --
    17 Oct 2010 10:34 PM
    Will,

    Thank you very much for taking the time to answer my question. After posting, I found several other discussion revolving around editors. My main need is to give my user the ability to paste code examples into their posts as my forums support a programming community. I'm starting to question whether or not the Telerik editor is the best editor for my needs. Late last week I had begun researching alternative editors but ran out of time. I would be grateful if anyone has a suggestion for an editor that would better serve this purpose.

    I know that you hate this question but it is the million dollar question. Any hints on when I could get my hands on 4.3 to get the fix? I'm a bit bummed to be at this point because I just went through a very painful 3.7 - 4.2.7 upgrade (long story but I will say that not all issues were AF problems).

    Thank you Will and whole AF team. You guys do great work and I appreciate you and your products.
    Jason Newell
    Applications Architect
    www.jasonnewell.net
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    19 Oct 2010 12:45 AM
    Hi Jason,
    Thanks for the compliments. I can promise you upgrading from 4.2 to 4.3 will be nothing like what you went through with the upgrade from 3.7. Active Forums 4.3 should be released before the end of the week.

    As far as editors go, I like the way telerik handles the code parsing. One thing I've noticed is that you can't paste HTML or XML fragments. Telerik will try and complete the fragments for you, which can cause some problems.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > Telerik Editor - Format Code Block
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy