Changeset 5395

Show
Ignore:
Timestamp:
02/25/08 03:29:46 (9 months ago)
Author:
inureyes
Message:

#806

  • formatter를 변환할 때 에디터 전체를 초기화하도록 함.
  • modern editor 초기화시 markdown, textile 에디터의 경우 raw 편집모드를 기본으로 함.
Location:
trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/login/index.php

    r5365 r5395  
    4848    if (!$isLogin) { 
    4949        $message = _text('아이디 또는 비밀번호가 틀렸습니다.'); 
    50         if (!doesHaveMembership() && isLoginId($blogid, $_POST['loginid'])) 
     50        if (!doesHaveMembership() && isLoginId(getBlogId(), $_POST['loginid'])){ 
    5151            $showPasswordReset = true; 
     52        } 
    5253    } 
    5354    else if($isLogin == 2) { 
  • trunk/lib/view/ownerView.php

    r5285 r5395  
    4343            } 
    4444        } 
    45         if (correct && !editormap[editorselect.value] && firsteditor >= 0) { 
     45        //if (correct && !editormap[editorselect.value] && firsteditor >= 0) { 
     46        if (correct && firsteditor >= 0) { 
    4647            editorselect.selectedIndex = firsteditor; 
    47             if (typeof correct == 'function') correct(editorselect.value); 
     48            if (typeof correct == 'function') correct(editorselect.value, key); 
    4849        } 
    4950        return true; 
     
    142143 
    143144    var editor = null; 
    144     function setCurrentEditor(key) { 
     145    function setCurrentEditor(key,formatter) { 
    145146        var neweditor = getEditor(key); 
    146147        if (neweditor == null) { 
     
    158159        } 
    159160        editor = neweditor; 
     161        editor.formatter = formatter; 
    160162        editor.initialize(document.getElementById("editWindow")); 
    161163        return true; 
  • trunk/plugins/FM_Modern/editor.js

    r5285 r5395  
    8686    if(typeof(document.execCommand) == "undefined" || !(STD.isIE || STD.isFirefox || STD.isSafari3)) 
    8787        return; 
    88  
     88    // Set editor mode for formatters. 
     89    if(this.formatter == 'textile' || this.formatter == 'markdown') this.editMode = 'TEXTAREA'; 
    8990    for (var x in TTModernEditor.editors) return x; // ignore if there is any other instance 
    9091    var seed = (textarea.id || 'unknown').replace(new RegExp('[^a-z0-9_]', 'gi'), ''); 
     
    230231    if(this.editMode == "TEXTAREA") 
    231232        this.iframe.style.display = "none"; 
    232  
    233233    // 가끔씩 Firefox에서 커서가 움직이지 않는 문제 수정 
    234234    if(!STD.isIE) setTimeout(function() { try { _this.contentDocument.designMode='on'; } catch (e) {} }, 100); 
  • trunk/plugins/FM_Modern/index.php

    r5285 r5395  
    22function FM_Modern_handleconfig($configVal) { 
    33    requireComponent('Textcube.Function.misc'); 
     4    requireComponent('Textcube.Function.Setting'); 
    45    $config = setting::fetchConfigVal($configVal); 
    56    if (isset($config['defaultmode']) && $config['defaultmode'] != 'WYSIWYG' && $config['defaultmode'] != 'TEXTAREA') return false; 
  • trunk/skin/coolant/skin.html

    r5386 r5395  
    482482                        <a href="[##_archive_rep_link_##]">[##_archive_rep_date_##] </a> 
    483483                        <span class="cnt">([##_archive_rep_count_##])</span> 
    484                         </li> 
     484                    </li> 
    485485                </s_archive_rep> 
    486486                </ul>