radeditor adds blank lines

4 posts, 0 answers
  1. Diane
    Diane avatar
    6 posts
    Member since:
    Sep 2014

    Posted 01 Sep 2014 Link to this post

    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()"
  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 02 Sep 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. diane
    diane avatar
    18 posts
    Member since:
    Aug 2014

    Posted 02 Sep 2014 in reply to Ianko Link to this post

    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?
  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 03 Sep 2014 Link to this post

    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.

     
Back to Top