iFinity Blogs 

Changing default html line break behaviour from br to p in Telerik editor for DotNetNuke

Oct 10

Written by:
Monday, October 10, 2011 11:26 AM  RssIcon

Something that has been annoying me ever since I switched the default Html editor for this site over from the old FCK Editor to the Telerik Editor now bundled with DotNetNuke has been the default [enter] behaviour.   In the old days of FCK Editor, this would create a new

content here

block in the Html.  Which worked well for the content and the layouts.

Since switching to Telerik, I found that instead of a block, you’d end up with a
.  Telerik official response was ‘use shift+enter to generate a

block’.

That’s all well and good if you’re the one editing the content, but in reality, when you have a forum, you can’t possibly hope to get forum contributors to do this.  Instead, the end result is a forum peppered with
line breaks all through the content, which occasionally results in a very broken layout.

While sorting out some other problems on another website to do with Html editing, I decided to do some quick research and see if could bust this issue once and for all.

Turns out it is very easy to fix!

How to change from
to

for default line break in a DotNetNuke site that uses the Telerik Html Editor

 

This is very simple.

  1. Log onto your server, or obtain access to the file system of your DotNetNuke install via FTP
  2. Locate the Providers/HtmlEditorProviders/Telerik/Config/ConfigDefault.xml file
  3. Open this file in a Text Editor (ie Notepad or similar)
  4. Find the value.  If you’re getting
    line breaks, it should be set to ‘True’.
  5. Change this value to false, so that the line looks like this:
      
      false
  6. Save the ConfigDefault.xml File
  7. Try out the Html editor by pressing the [enter] key to generate a new line.  Then switch to view in the editor and check that a

 

block was created.

That’s it, you’re done.  Start creating more content!

 

Tags:
Categories:
Location: Blogs Parent Separator Crafty Code

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
Bruce Chapman
Hi, I'm Bruce Chapman, and this is my blog. You'll find lots of information here - my thoughts about business and the internet, technical information, things I'm working on and the odd strange post or two.

 

Share this
Get more!
Subscribe to the Mailing List
Email Address:
First Name:
Last Name:
You will be sent a confirmation upon subscription

 

Follow me on Twitter
Stack Exchange
profile for Bruce Chapman at Stack Overflow, Q&A for professional and enthusiast programmers
Klout Profile