{@
//$args = new stdClass();
//$oModuleModel = getModel('module');
//$module_srl = $oModuleModel->getModuleSrlByMid($mid);
//$args->module_srl = $module_srl;
$editorModel = &getModel('editor');
//$tag_list = $tagModel->getTagList($args);
}
<pre>{$editorModel->default_editor_config[editor_skin]}</pre>

<hr>

{@
$oEditorModel = &getModel('editor');
}
<pre>{var_dump($oEditorModel)}</pre>


<hr>

삽질 중입니다 ㅠ

 

라이믹스에서는 위 코드처럼 하면,

{$editorModel->default_editor_config[editor_skin]}

이렇게 &getModel('editor') 만으로 어떤 스킨 사용 가능한지 확인이 되던데요!

 


 

XE에서는 editor_skin 을 확인하는 변수가 없네요?;

그냥 XE는 에디터 스킨을 확인할 수 있는 방법이 라이믹스와 다른가요.

 

 

object(editorModel)#671 (22) {
  ["loaded_component_list"]=>
  array(0) {
  }
  ["mid"]=>
  NULL
  ["module"]=>
  string(6) "editor"
  ["module_srl"]=>
  NULL
  ["module_info"]=>
  NULL
  ["origin_module_info"]=>
  NULL
  ["xml_info"]=>
  NULL
  ["module_path"]=>
  string(17) "./modules/editor/"
  ["act"]=>
  NULL
  ["template_path"]=>
  NULL
  ["template_file"]=>
  NULL
  ["layout_path"]=>
  string(0) ""
  ["layout_file"]=>
  string(0) ""
  ["edited_layout_file"]=>
  string(0) ""
  ["stop_proc"]=>
  bool(false)
  ["module_config"]=>
  NULL
  ["ajaxRequestMethod"]=>
  array(2) {
    [0]=>
    string(6) "XMLRPC"
    [1]=>
    string(4) "JSON"
  }
  ["gzhandler_enable"]=>
  bool(true)
  ["error"]=>
  int(0)
  ["message"]=>
  string(7) "success"
  ["variables"]=>
  array(1) {
    ["message_type"]=>
    NULL
  }
  ["httpStatusCode"]=>
  NULL
}

 

 

이렇게 밖에 출력이 안되더라구요.

그냥 XE/라이믹스 차이인가요?;

 

 

  • profile

    에디터 모듈의 기본 스킨 기능이 xe에도 있었던가요? 만진지 한참 돼서 기억이 나질 않네요ㅜ
    위의 코드만 보면 느낌상 사이트 전역에 설정된 에디터 전체의 기본 스킨 같은데요. 모듈별로 따로 지정된 에디터 스킨이 아니라요. 라이믹스라 하더라도 기본 에디터 스킨이 아니라 모듈별로 사용되고 있는 에디터 스킨을 불러와야 할 것 같다는 생각이 듭니다.

  • ?

    modules/editor/editor.model.php 에서
    getEditorConfig 함수 조금만 분석해보시면
    에디터 자체의 기본스킨 / 게시판별 스킨 정보 추출하는 소스 확인가능하실거에요

    $oModuleModel = getModel('module');
    $editor_default_config = $oModuleModel->getModuleConfig('editor');
    $editor_skin = $editor_default_config->editor_skin;
    기본 스킨은 이렇게 되겠네요

    게시판별 개별 설정해둔 스킨이 있는지 먼저 확인을 하는게 좋으니..
    getEditorConfig 함수 조금만 살펴보시면 아마 짜실 수 있을거예요 ^^