Changeset 5115

Show
Ignore:
Timestamp:
01/22/08 23:15:43 (10 months ago)
Author:
inureyes
Message:

#808

  • 텍스트모드 편집이 필요한 에디터의 경우에는 모던 에디터에서 아예 모드를 textarea only로 제한해버린다.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/FM_Modern/index.php

    r5105 r5115  
    99 
    1010function FM_Modern_editorinit(&$editor) { 
    11     global $service, $configVal; 
     11    global $service, $configVal, $entry; 
    1212    requireComponent('Textcube.Function.misc'); 
    1313    requireComponent('Textcube.Function.Setting'); 
     
    2020        $config = setting::fetchConfigVal($configVal); 
    2121    } 
    22     if ((setting::getBlogSettingGlobal('defaultFormatter','html') == 'markdown') || 
    23         (setting::getBlogSettingGlobal('defaultFormatter','html') == 'textile')) { 
     22    if (in_array(setting::getBlogSettingGlobal('defaultFormatter','html'),array('markdown','textile')) || 
     23        in_array($entry['contentFormatter'],array('markdown','textile'))) { 
    2424        $config['restrictEditorMode'] = true; 
    2525        $config['defaultmode'] = 'TEXTAREA';