Changeset 1404


Ignore:
Timestamp:
03/05/2010 10:16:50 AM (2 years ago)
Author:
zhongzhen
Message:

FCKeditor fix for Help extention

Location:
branches/omcollab_zhongzhen2/wiki/extensions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/omcollab_zhongzhen2/wiki/extensions/FCKeditor/FCKeditor.body.php

    r610 r1404  
    475475                // Create the editor instance and replace the textarea. 
    476476                oFCKeditor.Height = height ; 
     477                // Added by zhongzhen - For help extention 
     478                oFCKeditor.Width = document.getElementById('wpTextbox1').style.width; 
    477479                oFCKeditor.ReplaceTextarea() ; 
    478480 
     
    730732                showFCKEditor -= RTE_VISIBLE; 
    731733                oEditorIframe.style.display = 'none'; 
    732                 FCKtoolbar.style.display = ''; 
    733                 SRCtextarea.style.display = ''; 
     734                FCKtoolbar.style.display = 'block'; // fixed by zhongzhen. It must not be ''. It must be 'block' 
     735                SRCtextarea.style.display = 'block'; // fixed by zhongzhen. It must not be ''. It must be 'block' 
    734736        } 
    735737        //FCKeditor hidden -> visible 
     
    741743                oEditorIns.EditingArea.Textarea.value = SRCtextarea.value 
    742744                FCKtoolbar.style.display = 'none'; 
    743                 oEditorIframe.style.display = ''; 
     745                oEditorIframe.style.display = 'block'; // fixed by zhongzhen. It must not be ''. It must be 'block' 
     746                 
    744747                if ( !bIsWysiwyg ) oEditorIns.SwitchEditMode();         //switch to WYSIWYG 
    745748                showFCKEditor += RTE_VISIBLE; // showFCKEditor+=RTE_VISIBLE 
  • branches/omcollab_zhongzhen2/wiki/extensions/Help/Help_Guide.php

    r1402 r1404  
    3636                                $('#shadow').css('display', 'block'); 
    3737                                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     38                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
    3839                        } 
    3940             
     
    4344                $('#shadow').css('display', 'none'); 
    4445                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     46                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
    4547            } 
    4648             
     
    5153                    textwidth = $('#editform').width() - $('.button_class').width() - 30; 
    5254                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     55                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
    5356            }); 
    5457             
     
    5760                $('#wpTextbox1').css('display', 'block'); 
    5861                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     62                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
    5963            }); 
    6064 
     
    98102        // Help button 
    99103        $editPage->editFormTextBeforeContent .= '<div class="button_class"><img src="extensions/Help/images/button_help.gif" style="cursor: pointer;" onclick="showHelp()"/></div>';  
    100  
    101104        return true; 
    102105} 
Note: See TracChangeset for help on using the changeset viewer.