Changeset 1405 for trunk


Ignore:
Timestamp:
03/05/2010 10:50:31 AM (2 years ago)
Author:
Xiping.Wang
Message:

[trunk] merged from omcollab_zhongzhen2

Location:
trunk
Files:
2 deleted
7 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/_InstallationResources

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/blogs

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/wiki

  • trunk/wiki/extensions/FCKeditor/FCKeditor.body.php

    r610 r1405  
    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 
  • trunk/wiki/extensions/Help/HelpExtention.css

    r1400 r1405  
    77 
    88#wpTextbox1 { 
    9     width: 60%; 
    109        float: left; 
    1110        clear: none; 
     11    display: none; 
    1212} 
    1313 
     
    2222} 
    2323 
     24#closeButton { 
     25    width: 15px; 
     26    height: 15px;  
     27    position: absolute; 
     28    top: -7px; 
     29    right: -7px; 
     30    font-size: 11px; 
     31} 
     32 
    2433#shadow { 
    2534    background-color: #EFEFEF; 
    2635    float: right;  
    2736    margin: 5px; 
    28     width: 30%; 
     37    width: 280px; 
    2938} 
    3039 
     
    3847.tab_normal {color: #FFF; cursor: pointer; background-color: #AEAEAE;} 
    3948 
    40 .button_class {float: right; text-align: center; width: 7%;} 
     49.button_class {float: right; text-align: center; padding-right: 2px; display: none;} 
    4150.help_content {padding: 10px; display: none; color:#444;} 
    4251 
  • trunk/wiki/extensions/Help/Help_Guide.php

    r1400 r1405  
    3030        // Add javascript to Edit page 
    3131        $wgOut->addHTML("<script> 
    32                         function changeIcon(obj) { 
    33                                 var source = obj.src; 
    34                                 if (source.search('button_help') > -1) { 
    35                                         obj.src = 'extensions/Help/images/button_hide.gif'; 
    36                                         $('#shadow').css('display', 'block'); 
    37                                         $('#wpTextbox1').css('width', '60%'); 
    38                                 } 
    39                                 else { 
    40                                         obj.src = 'extensions/Help/images/button_help.gif'; 
    41                                         $('#shadow').css('display', 'none'); 
    42                                         $('#wpTextbox1').css('width', '92%'); 
    43                                 } 
     32            var textwidth = new Number(); 
     33                        function showHelp() { 
     34                textwidth = $('#editform').width() - $('#shadow').width() - 30; 
     35                $('.button_class').css('display', 'none'); 
     36                                $('#shadow').css('display', 'block'); 
     37                                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     38                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
    4439                        } 
     40             
     41            function hideHelp() { 
     42                textwidth = $('#editform').width() - $('.button_class').width() - 30; 
     43                $('.button_class').css('display', 'block'); 
     44                $('#shadow').css('display', 'none'); 
     45                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     46                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
     47            } 
     48             
     49            $(window).resize(function() { 
     50                if ($('#shadow').css('display') == 'block') 
     51                    textwidth = $('#editform').width() - $('#shadow').width() - 30; 
     52                else 
     53                    textwidth = $('#editform').width() - $('.button_class').width() - 30; 
     54                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     55                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
     56            }); 
     57             
     58            $(function() { 
     59                textwidth = $('#editform').width() - $('#shadow').width() - 30; 
     60                $('#wpTextbox1').css('display', 'block'); 
     61                $('#wpTextbox1').css('width', textwidth.toString() + 'px'); 
     62                $('#wpTextbox1___Frame').css('width', textwidth.toString() + 'px'); 
     63            }); 
     64 
    4565        </script>"); 
    4666         
     
    7898         
    7999        //Help content area 
    80         $editPage->editFormTextBeforeContent .= '<div id="shadow"><div id="helpArea">' . $html . '</div></div>';  
     100        $editPage->editFormTextBeforeContent .= '<div id="shadow"><div id="helpArea"> 
     101        <div id="closeButton"><img src="extensions/Help/images/button_close.gif" style="cursor: pointer; border: 0;" onclick="hideHelp()"/></div>' . $html . '</div></div>';  
    81102        // Help button 
    82         $editPage->editFormTextBeforeContent .= '<div class="button_class"><img src="extensions/Help/images/button_hide.gif" style="cursor: pointer;" onclick="changeIcon(this)"/></div>';  
    83  
     103        $editPage->editFormTextBeforeContent .= '<div class="button_class"><img src="extensions/Help/images/button_help.gif" style="cursor: pointer;" onclick="showHelp()"/></div>';  
    84104        return true; 
    85105} 
Note: See TracChangeset for help on using the changeset viewer.