/**
* @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); 해서 다시 돌려쓰는수밖에 ... ㅠㅠ