/**
     * @brief Return the editor template
     * You can call upload_target_srl when modifying content
     * The upload_target_srl is used for a routine to check if an attachment exists
     */
    function getEditor($upload_target_srl = 0, $option = null)
    {

...

...

        Context::set('content_font', addslashes($option->content_font));

 

에디터의 문서 폰트 입력값을 왜 addslashes()로 감싸가지고 "가 \"가 되게 해놓은걸까요...

 


    /**
     * @brief convert editor component codes to be returned and specify content style.
     */
    function triggerEditorComponentCompile(&$content)
    {

...

...

            $content_font = $editor_config->content_font;
            $content_font_size = $editor_config->content_font_size;
            if($content_font || $content_font_size)
            {
                $buff = array();
                $buff[] = '<style> .xe_content { ';
                if($content_font) $buff[] = 'font-family:'.$content_font.';';
                if($content_font_size) $buff[] = 'font-size:'.$content_font_size.';';
                $buff[] = ' }</style>';
                Context::addHtmlHeader(implode('', $buff));
            }

 

그리곤 자기내들은 그냥 뽑아쓰고 있어!!

 

<style> .xe_content { font-family:\"Malgun Gothic\",\"Arial\",\"sans-serif !important\"; font-size: 18px; }</style>

<style> .xe_content { font-family:"Malgun Gothic","Arial","sans-serif !important"; font-size:18px; }</style>

 

차별을 하네.. ㅠㅠ

 

어쩔 수 없이 stripcslashes($content_font); 해서 다시 돌려쓰는수밖에 ... ㅠㅠ

  • profile
    XE3은 에디터도 바뀔려나요? 흠...
  • profile profile
    네이버 스마트 에디터 달리면 대박 ㅋㅋ
  • profile profile
    ㅋㅋㅋㅋㅋㅋ
    그러고보니 XE기본 에디터가 스마트 에디터의 개량판이었죠.
    최근 네이버 에디터3버전인가? 발표되었는데 웹표준에 어긋난다고 하더라고요.
  • profile ?
    흠. 글쎄요. 오히려 네이버 스마트 에디터가 달릴 가능성은 낮다고 보네요.

    유지보수하기 힘들다고 xpresseditor를 버리고 ckeditor를 달았는데...ㅠㅠ
  • ? profile
    xpresseditor는 자체 인력이 개발한 거라 그렇고 네이버 스마트에디터는 따로 팀이 있으니깐 유지보수에 문제는 없는데..
    그걸 굳이 거기다 오픈소스로 공개하지는 않을 듯 해요 ㅋㅋ
  • profile
    우오오옹,, 검은 건 글자고.. 허연건 종이니...
  • profile
    어려워요..초보는
  • ?
    나도 무슨말인지 모르겠네 ㅠㅠ