Script Error on RadEditor

2 posts, 0 answers
  1. Anwar
    Anwar avatar
    31 posts
    Member since:
    Aug 2011

    Posted 07 May 2013 Link to this post

    Hello,
    When i paste some html in html mode of RadEditor and trying to save this content in database.here i am getting some script error unexpectedly some times.
    observe the attached image attached.

    This is my editor with all the properties,
    <telerik:RadEditor ID="RadEditor1" EditModes="Design,Html" OnClientModeChange="OnClientModeChange"
    OnClientLoad="GetContentLength" OnClientPasteHtml="OnClientsubmit" runat="server"
    ToolsFile="~/Editor/RadEditorTools/RadTools.xml" Height="550px" Width="100%"
    EnableResize="false" ContentFilters="DefaultFilters" OnClientCommandExecuting="changeImageManager"
    unselectable="on">
    <CssFiles>
        <telerik:EditorCssFile Value="~/Editor/RadEditorTools/EditorContentArea.css" />
    </CssFiles>
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="ImageManager" />
            <telerik:EditorTool Name="InsertLinks" />
        </telerik:EditorToolGroup>
    </Tools>
    <Content></Content>
    <ImageManager ViewPaths="~/Editor/Images" DeletePaths="~/Editor/Images" UploadPaths="~/Editor/Images"
        SearchPatterns="*.gif,*.jpg,*.jpeg,*.png,*.bmp" />
    <TemplateManager ViewPaths="~/Editor/SampleDocs/Templates" UploadPaths="~/Editor/SampleDocs/Templates"
        DeletePaths="~/Editor/SampleDocs/Templates" />
    <DocumentManager ViewPaths="~/Editor/SampleDocs/Docs" UploadPaths="~/Editor/SampleDocs/Docs"
        DeletePaths="~/Editor/SampleDocs/Docs" />
    </telerik:RadEditor>

    any solution?

    Regards,
    Anwar
  2. Stamo Gochev
    Admin
    Stamo Gochev avatar
    208 posts

    Posted 09 May 2013 Link to this post

    Hi Anwar,

    Thank you for contacting the Telerik Support.

    Judging from the screenshots which you have attached it seems that you are pasting some images in the RadEditor. Could you try pasting them one by one and execute the filtering each time in order to see if a specific image triggers the error? In addition, could you try this scenario in other browsers except from Google Chrome and inform me if you are able to reproduce the same issue?

    Furthermore, could you please provide me the exact HTML content which you paste in the RadEditor? This will help me to investigate the matter and give you further details about it.

    Regards,
    Stamo Gochev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top