Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for PHP
»
Visibility Problem
Visibility Problem
Last post 09-19-2011, 7:26 AM by
Kenneth
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
09-19-2011, 2:59 AM
70094
JavedBoqo
Joined on 07-19-2011
Posts 11
Visibility Problem
Reply
Quote
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
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Visibility Problem
Reply
Quote
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