[에디터] 제로보드 fck에디터 달기 샘플 입니다.
2016.10.16 04:21
202
0
https://eond.com/378689
object(HotopayModel)#798 (23) { ["error"]=> int(0) ["message"]=> string(7) "success" ["variables"]=> array(0) { } ["httpStatusCode"]=> int(200) ["module"]=> string(7) "hotopay" ["module_info"]=> NULL ["origin_module_info"]=> NULL ["module_config"]=> NULL ["module_path"]=> string(52) "/home/eond/web/eond.com/public_html/modules/hotopay/" ["xml_info"]=> NULL ["module_srl"]=> NULL ["mid"]=> NULL ["act"]=> NULL ["template_path"]=> NULL ["template_file"]=> NULL ["layout_path"]=> NULL ["layout_file"]=> NULL ["edited_layout_file"]=> NULL ["stop_proc"]=> bool(false) ["user"]=> object(Rhymix\Framework\Helpers\SessionHelper)#797 (20) { ["member_srl"]=> int(0) ["user_id"]=> NULL ["user_name"]=> NULL ["nick_name"]=> NULL ["email_address"]=> NULL ["phone_number"]=> NULL ["homepage"]=> NULL ["blog"]=> NULL ["birthday"]=> NULL ["denied"]=> NULL ["status"]=> NULL ["is_admin"]=> string(1) "N" ["is_site_admin"]=> NULL ["profile_image"]=> NULL ["image_name"]=> NULL ["image_mark"]=> NULL ["signature"]=> NULL ["description"]=> NULL ["group_list"]=> array(0) { } ["menu_list"]=> array(0) { } } ["request"]=> object(Rhymix\Framework\Request)#10 (13) { ["method"]=> string(3) "GET" ["compat_method"]=> string(3) "GET" ["url"]=> string(29) "zeroboard4/378689/page/465329" ["hostname"]=> string(8) "eond.com" ["domain"]=> NULL ["protocol"]=> string(5) "https" ["callback_function"]=> string(0) "" ["_route_status":protected]=> int(200) ["_route_options":protected]=> object(stdClass)#11 (5) { ["cache_control"]=> bool(true) ["check_csrf"]=> bool(true) ["is_forwarded"]=> bool(false) ["is_indexable"]=> bool(true) ["enable_session"]=> bool(true) } ["module"]=> string(5) "board" ["mid"]=> string(10) "zeroboard4" ["act"]=> string(16) "dispBoardContent" ["args"]=> array(4) { ["document_srl"]=> string(6) "378689" ["page"]=> int(465329) ["mid"]=> string(10) "zeroboard4" ["act"]=> string(16) "dispBoardContent" } } ["ajaxRequestMethod"]=> array(2) { [0]=> string(6) "XMLRPC" [1]=> string(4) "JSON" } ["gzhandler_enable"]=> bool(true) }

제로보드 에디터가 IE7에서는 정상 작동되는데, 이후 버전에서 정상 작동되지 않는 것을
FCK에디터로 교체한 스킨입니다. 압축파일을 다운받으시면 됩니다. 사용방법은 다음 글을 읽고 참조하세요.

1) 제로보드 /bbs/skin/스킨폴더명/write.php에 아래의 스크립트를 넣어준다. 
  
  
  
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script> 
<script type="text/javascript"> 
    <!-- 
    window.onload=function() 
    { 
      var objFCK = new FCKeditor('memo'); 
  

      objFCK.Config["CustomConfigurationsPath"] = "/myfckconfig.js?";    // 개인 설정 파일 
      objFCK.BasePath = "/fckeditor/";  // fckeditor 디렉터리 경로 
  
      objFCK.Height = "400"; 
  
      objFCK.value = ""; 
      //objFCK.ToolbarSet = 'MyToolbar' ; 
  
      var BasePath = '/fckeditor/'; 
      var Skin = 'silver';                  // fckeditor 스킨 타입 
      var SkinPath = BasePath + 'editor/skins/' + Skin + '/' ; 
  
      objFCK.Config['SkinPath'] = SkinPath ;  // fckeditor 스킨 변경 
      objFCK.ReplaceTextarea(); 
    } 
    //--> 
    </script> 
  
  
2) fckconfig.js 
  
  
FCKConfig.DefaultLanguage  = 'ko' ; //en을 한글 타입으로 수정 
  

var _FileBrowserLanguage = 'php'; //사용언어 선택 
  
var _QuickUploadLanguage = 'php'; 


FCKConfig.ImageBrowser = false ; 

  
FCKConfig.FlashBrowser = false ; 

FCKConfig.EnterMode = 'br' ; //기본 p로 되어 있음. 엔터를 쳤을경우 p태그로 할지 br로 할지 div로 할지 선택 

  
FCKConfig.ShiftEnterMode = 'br' ; //기본 p로 되어 있음. 쉬프트+엔터를 쳤을경우 p태그로 할지 br로 할지 div로 할지 선택 
  
  
  
3) editor/filemanager/connectors/php/config.php 수정 
  
파일 업로드에 대한 옵션들은 전부 이 파일에서 수정하면 됨. 
  
$Config['Enabled'] = true ; //false를 true로 수정 
  
  
$Config['UserFilesPath'] = '/upload/' ; //이미지 업로드시 업로드 시킬 폴더 경로 지정 

업로드시킬 폴더는 777권한 부여 

  
  
  
4) /editor/filemanager/connectors/php/commands.php 수정 
  
한글파일 이미지 업로드시 글자 깨짐 오류 해결 방법 
  
$sFileName = SanitizeFileName( $sFileName ) ; 를 

$sFileName = iconv('utf-8','euc-kr',$sFileName); 이걸로 수정!!

라이믹스는 이온디와 함께

닫기

마이페이지

로그인을 해주세요

네이버로 로그인