+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Cannot type into Radeditor on any browser but IE - Urgent

Cannot type into Radeditor on any browser but IE - Urgent

5 posts, 0 answered
  1. Ege AKPINAR
    Ege AKPINAR avatar
    6 posts
    Registered:
    01 Dec 2009
    12 Feb 2010
    Link to this post
    Hello,

    RadEditor module (the content text editor found within certain places like new blog post, new news item, etc. ) hangs when I use Sitefinity on Firefox, Chrome or Safari. In IE8, it seems fine.

    The problem is, when you open a new post page, the content text editor (where it says "Type your content here") does not have that text ("Type your content here") and it is not possible to type into the box. When I inspect the page with Firefox, I see there is a script error that says

    "Error: list.childNodes[x].childNodes[0] is undefined
    Source file: http://localhost:2141/Vogue/WebResource.axd?d=9-_buPM_KitwpktQfV6q6qRhYHDvNs__KG-GGHUJdi_Fc_HtqMRp4OJzWfPZ2yWfkkKfC1QT1I7PeU1ImLCyWA2&t=634012277076956432
    Hat: 210"

    referring to the below code, line 11

    function DisableTagsInList(list)
    {
        var selectedTags = document.getElementById(tagEditor.selectedTagsId);
        var arrSelectedTags = selectedTags.value.split(';');
         
        // disable selected tags
        for(i=0; i < arrSelectedTags.length; i++)
        {
            for(x=0; x < list.childNodes.length; x++)
            {
                if(arrSelectedTags[i] == list.childNodes[x].childNodes[0].innerHTML)
                {
                    var span = document.createElement('span');
                    span.innerHTML = arrSelectedTags[i];
                    list.childNodes[x].replaceChild(span, list.childNodes[x].childNodes[0]);
                    break;
                }
            }
        }
         
        // enable tags that are not selected anymore
        for(x=0; x < list.childNodes.length; x++)
        {
            var isTagSelected = false;
            for(i=0; i < arrSelectedTags.length; i++)
            {
                if(list.childNodes[x].childNodes[0].innerHTML == arrSelectedTags[i])
                {
                    isTagSelected = true;  
                    break;
                }
            }
             
            if(!isTagSelected)
            {
                var a = document.createElement('a');
                a.href = '#';       
                a.innerHTML = list.childNodes[x].childNodes[0].innerHTML;
                a.setAttribute('onclick', 'AddTagFromList("' + list.childNodes[x].childNodes[0].innerHTML + '"); return false;');
                list.childNodes[x].replaceChild(a, list.childNodes[x].childNodes[0]);           
            }
        }
    }


    I am using 2009.2. I believe it has got to do with the customizations I've made to the usercontrols (although I haven't touched RadEditor or TagsEditor or such.)

    Any help would be greatly appreciated,
    Ege
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Feb 2010
    Link to this post
    Hello Ege AKPINAR,

    Try using the default templates to narrow down the issue. One of the embedded resources is not loading properly - it could be blocked somehow and this breaks the editor. The The problem could not be related to the RadEditor itself. The problem could be somewhere on the page you use or backend view.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Ege AKPINAR
    Ege AKPINAR avatar
    6 posts
    Registered:
    01 Dec 2009
    12 Feb 2010
    Link to this post
    Hello Ivan Dimitriv,

    I haven't touched the erroneous controls (Admin / ControlTemplates / News / NewsItemNew.ascx or such) I only modified the contents of user side user controls (those under Sitefinity / ControlTemplates - not / Admin/ ).

    I get the feeling that this script error prevents other scripts on the page from being loaded and thus, the RadEditor does not work. And I believe, in IE8, IE allows for the remaining scripts to be loaded although one of them failed.

    Furthermore, when I add an OnClientLoad script to the RadEditor, it does not work at all (None of the below works)
    1st option - I saw in another forum post here, and it claimed to solve a similar problem (defining a function named OnClientLoad on top of the page)
    2 and 3rd options - obvious
    <telerik:RadEditor
                     
                        OnClientLoad="OnClientLoad"
                        or
                        OnClientLoad="javascript:alert('yahoo');"
                        or
                        OnClientLoad="javascript:function1();"
         
                        runat="server"
                        ID="Editor"
                        ContentAreaCssFile="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"
                        ToolsFile="~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml"                  
                        Skin="WebBlue"                    
                        NewLineBr="False"
                        Width="95%"
                        ContentFilters="FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml,IndentHTMLContent">
                        <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" />
                        <MediaManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" />
                        <FlashManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" />
                        <DocumentManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" />
                        <CssFiles>
                            <telerik:EditorCssFile Value="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css" />
                        </CssFiles>
                    </telerik:RadEditor>
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 Feb 2010
    Link to this post
    Hello Ege AKPINAR,

    Than you for getting back to us.

    You have the correct feeling. The javascript errors you are getting are preventing the editor to load properly. Can you show us the whole code of the control template where you have the <script> tag defining the client functions.

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Ege AKPINAR
    Ege AKPINAR avatar
    6 posts
    Registered:
    01 Dec 2009
    12 Feb 2010
    Link to this post
    Thanks a lot for this quick in-depth support. It turns out my TagEditor.ascx was erroneous. (Although the files looked identical to me) I replaced it with a default one and it works great now.

    Best regards
Register for webinar
5 posts, 0 answered