Visibility Problem

Last post 09-19-2011, 7:26 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  09-19-2011, 2:59 AM 70094

    Visibility Problem

    hi ,
    i have two cute editors, one is editable while other is readonly. Readonly editor is invisible by default so that i can change its visibility at run time. but the problem is that setHtml method not working when ever cute editor is invisible by default. even i have show it before setting html in it.
    my code is :
    function fFill_ReadonlyEditor(sectionData,Permissions){
         $('#readonly_editor').hide();
         $('#editable_editor').hide();//*/
        
     
        var editor ='';    
        if(Permissions=='yes'){
            $('#editable_editor').show();
            editor = document.getElementById('CE_Editor1_ID');        
        }else{
             $('#readonly_editor').show();alert('readonly');
            editor = document.getElementById('CE_Editor2_ID');
        }alert(editor);
        editor.setHTML(sectionData);//*/                
    }
     
  •  09-19-2011, 7:26 AM 70100 in reply to 70094

    Re: Visibility Problem

    Hi JavedBoqo,
     
    How do you hide the editor by default? If use "display:none", I suggest you change to "visibility:hidden".
     
    If you can create an example page which can reproduce this issue and post here, it will very helpful.
     
    Regards,
     
    Ken
View as RSS news feed in XML