This is a migrated thread and some comments may be shown as answers.

radeditor adds blank lines

3 Answers 18 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Diane
Top achievements
Rank 1
Diane asked on 01 Sep 2014, 10:30 PM
In a vb.net 2010 web form application the user loads 'template letters' to a web interface, that they can modify letters sent out to various customers to generate various late pay notifications. The user basically selects the 'template letter' they want to generate for a specific customer, and hits the 'save' button. The web interface has the tabs for 'preview', 'html', and 'design' as the bottom of editor. These tabs are not part of any custom code, they must be part of a web interface that is inherited.The values for the editor are stored in a sql server 2012 database in a field called 'strTemplate' and the value is actually html. The problem is once the html value for 'strTemplate' is loaded for the user to edit, extra blank lines are loaded between different parts of the 'templates. Basically extra <br></br> tags are generated.When the user hits the save button, more <br></br> tags are generated between the various parts of the letter.I do not want these extra blank lines to be generated.I have gone into the html tab, removed the <br></br> tags and hit the save button. The extra tags are still generated. I have stepped through the code to find where the tags are generated and can not find it.Thus can you tell me what I can do to not have the extra <br></br> tags generated?The following is some of the code that is used when accessing the part of that gets to the web interface:
Imports System.Data
Imports System.Reflection
Imports System.Windows.Forms
Imports Telerik.Web.UI
Imports System.Web.Script.Services
Imports System.Web.Script.Serialization
Imports System.Web.Services
Partial Class edittemplates_default
    Inherits System.Web.UI.PageProtected _master As MasterPage#Region "Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load"    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load        _master = CType(Page.Master, MasterPage)
        _master.PageTitle = "Edit Templates"
        If Not Page.IsPostBack Then
            If (edittemplates_default.SiteUserManager.SessionUser IsNot Nothing) Then
                LoadTemplates()
                LoadVariables()
            Else
                'pnlEditor.Enabled = False
                'pnlEditor.Visible = False           
            End If
        End If
        Master.Page.Title = "Login"
    End Sub
#End Region#Region "Protected Sub LoadTemplates()"

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 02 Sep 2014, 09:49 AM
Hi,

The same matter is discussed in other forum thread (http://www.telerik.com/forums/telerik-editor-inserts-blank-lines-on-save). I suggest following it and post any additional information as per to your scenario to clarify the exact situation.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
diane
Top achievements
Rank 1
answered on 02 Sep 2014, 02:45 PM
The online demos do not show this situation. The extra <br> </br> tags occur when the file is opened and when the file is saved. Everytime the file is accessed the extra  <br> </br> tags are generated.<p style="text-align: center; margin-right: 0px;" dir="ltr"><span class="ctl00_Sitemap_1"></span><span class="ctl00_Sitemap_5"></span><span class="ctl00_Sitemap_8"></span><span class="ctl00_Sitemap_1"></span>&amp;PRIMECOUNTY.EVAL County Non-attendance Referral Form
<br>
</br>
<br>
</br>
</p>
&amp;CUR_DATE.EVAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<p></p>
<p style="text-align: left; margin-right: 0px;" dir="ltr">CUSTOMER INFORMATION:
<br>
</br>&amp;STU_FNAME.EVAL&nbsp;&amp;STU_LNAME.EVAL&nbsp; DOB: &amp;DOB.EVAL&nbsp;&nbsp;&nbsp;Age:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Race: &amp;STU_RACE.EVAL</p>
<br>
</br>
<br>
</br>
</p>Note: I do not have any special telerik tools installed on my workstation. Do I need to download tools? If so, what tool(s) should I download?
0
Ianko
Telerik team
answered on 03 Sep 2014, 06:58 AM
Hi,

I am not aware about how the mentioned file is loaded or saved. Is it a txt file? What is the logic that saves the content to file?

I suggest debugging the project and try finding out why these tags are getting inserted.

Currently I am unable to determine how the Editor is used and what is its purpose in the scope of the built application, so that I could be able to provide any suggestion for tools or approaches.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Diane
Top achievements
Rank 1
Answers by
Ianko
Telerik team
diane
Top achievements
Rank 1
Share this question
or