에디터 모듈별 설정시 편집/보여주기때의 글꼴 뿐 아니라 글꼴 크기도 지정할 수 있는 기능을 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6459 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-06-02 07:53:07 +00:00
parent c052eebd27
commit 7d0352479a
13 changed files with 44 additions and 3 deletions

View file

@ -92,6 +92,7 @@
} }
if(count($font_list)) $editor_config->content_font = '"'.implode('","',$font_list).'"'; if(count($font_list)) $editor_config->content_font = '"'.implode('","',$font_list).'"';
} }
$editor_config->content_font_size = Context::get('content_font_size');
$editor_config->sel_editor_colorset = Context::get('sel_editor_colorset'); $editor_config->sel_editor_colorset = Context::get('sel_editor_colorset');
$editor_config->sel_comment_editor_colorset = Context::get('sel_comment_editor_colorset'); $editor_config->sel_comment_editor_colorset = Context::get('sel_comment_editor_colorset');
@ -171,7 +172,14 @@
} }
} }
$content_font = $editor_config->content_font; $content_font = $editor_config->content_font;
if($content_font) Context::addHtmlHeader('<style type="text/css" charset="UTF-8"> .xe_content { font-family:'.$content_font.'; } </style>'); $content_font_size = $editor_config->content_font_size;
if($content_font || $content_font_size) {
$buff = '<style type="text/css" charset="UTF-8"> .xe_content { ';
if($content_font) $buff .= 'font-family:'.$content_font.';';
if($content_font_size) $buff .= 'font-size:'.$content_font_size.';';
$buff .= '</style>';
Context::addHtmlHeader($buff);
}
} }
$content = $this->transComponent($content); $content = $this->transComponent($content);

View file

@ -72,6 +72,7 @@
// 기본 글꼴 지정 // 기본 글꼴 지정
Context::set('content_font', $option->content_font); Context::set('content_font', $option->content_font);
Context::set('content_font_size', $option->content_font_size);
// 자동 저장 유무 옵션 설정 // 자동 저장 유무 옵션 설정
if(!$option->enable_autosave) $enable_autosave = false; if(!$option->enable_autosave) $enable_autosave = false;
@ -224,6 +225,7 @@
$config->editor_skin = $editor_config->editor_skin; $config->editor_skin = $editor_config->editor_skin;
$config->content_style = $editor_config->content_style; $config->content_style = $editor_config->content_style;
$config->content_font = $editor_config->content_font; $config->content_font = $editor_config->content_font;
$config->content_font_size = $editor_config->content_font_size;
$config->sel_editor_colorset = $editor_config->sel_editor_colorset; $config->sel_editor_colorset = $editor_config->sel_editor_colorset;
$config->upload_file_grant = $editor_config->upload_file_grant; $config->upload_file_grant = $editor_config->upload_file_grant;
$config->enable_default_component_grant = $editor_config->enable_default_component_grant; $config->enable_default_component_grant = $editor_config->enable_default_component_grant;
@ -235,6 +237,7 @@
$config->editor_skin = $editor_config->comment_editor_skin; $config->editor_skin = $editor_config->comment_editor_skin;
$config->content_style = $editor_config->content_style; $config->content_style = $editor_config->content_style;
$config->content_font = $editor_config->content_font; $config->content_font = $editor_config->content_font;
$config->content_font_size = $editor_config->content_font_size;
$config->sel_editor_colorset = $editor_config->sel_comment_editor_colorset; $config->sel_editor_colorset = $editor_config->sel_comment_editor_colorset;
$config->upload_file_grant = $editor_config->comment_upload_file_grant; $config->upload_file_grant = $editor_config->comment_upload_file_grant;
$config->enable_default_component_grant = $editor_config->enable_comment_default_component_grant; $config->enable_default_component_grant = $editor_config->enable_comment_default_component_grant;
@ -256,6 +259,7 @@
$option->skin = $config->editor_skin; $option->skin = $config->editor_skin;
$option->content_style = $config->content_style; $option->content_style = $config->content_style;
$option->content_font = $config->content_font; $option->content_font = $config->content_font;
$option->content_font_size = $config->content_font_size;
$option->colorset = $config->sel_editor_colorset; $option->colorset = $config->sel_editor_colorset;
// 파일 업로드 권한 체크 // 파일 업로드 권한 체크

View file

@ -18,6 +18,7 @@
$lang->component_grant = 'Permission Setting'; $lang->component_grant = 'Permission Setting';
$lang->content_style = 'Content Style'; $lang->content_style = 'Content Style';
$lang->content_font = 'Content Font'; $lang->content_font = 'Content Font';
$lang->content_font_size = 'Content Font Size';
$lang->about_component = 'About component'; $lang->about_component = 'About component';
$lang->about_component_grant = 'Selected group(s) will be able to use expanded components of editor.<br />(Leave them blank if you want all groups to have permission)'; $lang->about_component_grant = 'Selected group(s) will be able to use expanded components of editor.<br />(Leave them blank if you want all groups to have permission)';
@ -45,6 +46,7 @@
$lang->about_editor_skin = 'You may select the skin of editor.'; $lang->about_editor_skin = 'You may select the skin of editor.';
$lang->about_content_style = 'You may select style for editting article or displaying content'; $lang->about_content_style = 'You may select style for editting article or displaying content';
$lang->about_content_font = 'You may select font for editting article or displaying content.<br/>Default font is your own font<br/> Please use comma(,) for multiple input.'; $lang->about_content_font = 'You may select font for editting article or displaying content.<br/>Default font is your own font<br/> Please use comma(,) for multiple input.';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = 'Selected group(s) will be able to upload files. (Leave them blank if you want all groups to have permission)'; $lang->about_upload_file_grant = 'Selected group(s) will be able to upload files. (Leave them blank if you want all groups to have permission)';
$lang->about_default_component_grant = 'Selected group(s) will be able to use default components of editor. (Leave them blank if you want all groups to have permission)'; $lang->about_default_component_grant = 'Selected group(s) will be able to use default components of editor. (Leave them blank if you want all groups to have permission)';
$lang->about_editor_height = 'You may set the height of editor.'; $lang->about_editor_height = 'You may set the height of editor.';

View file

@ -18,6 +18,7 @@
$lang->component_grant = 'Ajuste de las atribuciones'; $lang->component_grant = 'Ajuste de las atribuciones';
$lang->content_style = 'Content Style'; $lang->content_style = 'Content Style';
$lang->content_font = 'Content Font'; $lang->content_font = 'Content Font';
$lang->content_font_size = '문서 폰트 크기';
$lang->about_component = 'Presentación del componente'; $lang->about_component = 'Presentación del componente';
$lang->about_component_grant = 'Usted puede configurar el permiso de utilizar la ampliación de los componentes de editor.<br /> (Todo el mundo tendría permiso si no comprobado)'; $lang->about_component_grant = 'Usted puede configurar el permiso de utilizar la ampliación de los componentes de editor.<br /> (Todo el mundo tendría permiso si no comprobado)';
@ -45,6 +46,7 @@
$lang->about_editor_skin = 'Usted puede seleccionar la piel del editor.'; $lang->about_editor_skin = 'Usted puede seleccionar la piel del editor.';
$lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다'; $lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다';
$lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.'; $lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = 'Usted puede configurar el permiso de archivo adjunto. (Todo el mundo tendría permiso si no comprobado)'; $lang->about_upload_file_grant = 'Usted puede configurar el permiso de archivo adjunto. (Todo el mundo tendría permiso si no comprobado)';
$lang->about_default_component_grant = 'Usted puede configurar el permiso de uso de los componentes de editor por defecto. (Todo el mundo tendría permiso si no comprobado)'; $lang->about_default_component_grant = 'Usted puede configurar el permiso de uso de los componentes de editor por defecto. (Todo el mundo tendría permiso si no comprobado)';
$lang->about_editor_height = 'Usted puede configurar la altura del editor.'; $lang->about_editor_height = 'Usted puede configurar la altura del editor.';

View file

@ -18,6 +18,7 @@
$lang->component_grant = 'Configuration de la Permission'; $lang->component_grant = 'Configuration de la Permission';
$lang->content_style = 'Content Style'; $lang->content_style = 'Content Style';
$lang->content_font = 'Content Font'; $lang->content_font = 'Content Font';
$lang->content_font_size = '문서 폰트 크기';
$lang->about_component = 'Sur le Composant'; $lang->about_component = 'Sur le Composant';
$lang->about_component_grant = 'Vous pouvez configurer la Permission d\'utiliser des composants additionnels de l\'Editeur.<br /> (Tout le monde aura la Permission si vous ne cochez rien)'; $lang->about_component_grant = 'Vous pouvez configurer la Permission d\'utiliser des composants additionnels de l\'Editeur.<br /> (Tout le monde aura la Permission si vous ne cochez rien)';
@ -45,6 +46,7 @@
$lang->about_editor_skin = 'Vous pouvez choisir l\'habillage de l\'Editeur.'; $lang->about_editor_skin = 'Vous pouvez choisir l\'habillage de l\'Editeur.';
$lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다'; $lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다';
$lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.'; $lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = 'Vous pouvez configurer la permission d\'attacher les fichiers. (Tout le monde aura la permission si vous ne cochez rien)'; $lang->about_upload_file_grant = 'Vous pouvez configurer la permission d\'attacher les fichiers. (Tout le monde aura la permission si vous ne cochez rien)';
$lang->about_default_component_grant = 'Vous pouvez configurer la permission d\'utiliser les Composants Par Défaut de l\'Editeur. (Tout le monde aura la permission si vous ne cochez rien)'; $lang->about_default_component_grant = 'Vous pouvez configurer la permission d\'utiliser les Composants Par Défaut de l\'Editeur. (Tout le monde aura la permission si vous ne cochez rien)';
$lang->about_editor_height = 'Vous pouvez configurer l\'hauteur de l\'Editeur.'; $lang->about_editor_height = 'Vous pouvez configurer l\'hauteur de l\'Editeur.';

View file

@ -18,6 +18,7 @@
$lang->component_grant = '権限設定'; $lang->component_grant = '権限設定';
$lang->content_style = 'コンテンツスタイル'; $lang->content_style = 'コンテンツスタイル';
$lang->content_font = 'コンテンツフォント'; $lang->content_font = 'コンテンツフォント';
$lang->content_font_size = '문서 폰트 크기';
$lang->about_component = 'コンポーネント情報'; $lang->about_component = 'コンポーネント情報';
$lang->about_component_grant = '基本コンポーネント以外の拡張コンポーネント機能が利用可能な権限の設定が出来ます。<br />(選択なしの場合、誰でも利用可能)'; $lang->about_component_grant = '基本コンポーネント以外の拡張コンポーネント機能が利用可能な権限の設定が出来ます。<br />(選択なしの場合、誰でも利用可能)';
@ -45,6 +46,7 @@
$lang->about_editor_skin = 'エディターのスキンの選択が出来ます。'; $lang->about_editor_skin = 'エディターのスキンの選択が出来ます。';
$lang->about_content_style = 'コンテンツの編集、および内容表示の際のスタイルを指定します。'; $lang->about_content_style = 'コンテンツの編集、および内容表示の際のスタイルを指定します。';
$lang->about_content_font = 'コンテンツの編集、および内容表示の際のフォントを指定します。<br/>指定してない場合、ユーザーの設定を従います。<br/> 半角コンマ(,)区切りで複数フォントの登録が出来ます。'; $lang->about_content_font = 'コンテンツの編集、および内容表示の際のフォントを指定します。<br/>指定してない場合、ユーザーの設定を従います。<br/> 半角コンマ(,)区切りで複数フォントの登録が出来ます。';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = 'ファイル添付可能な権限の設定が出来ます。(選択なしの場合、誰でも添付が可能)'; $lang->about_upload_file_grant = 'ファイル添付可能な権限の設定が出来ます。(選択なしの場合、誰でも添付が可能)';
$lang->about_default_component_grant = 'エディターでの基本コンポーネントを使用可能な権限の設定が出来ます。(選択なしの場合、誰でも利用可能)'; $lang->about_default_component_grant = 'エディターでの基本コンポーネントを使用可能な権限の設定が出来ます。(選択なしの場合、誰でも利用可能)';
$lang->about_editor_height = 'エディターの基本高さを設定します。'; $lang->about_editor_height = 'エディターの基本高さを設定します。';

View file

@ -18,6 +18,7 @@
$lang->component_grant = '권한설정'; $lang->component_grant = '권한설정';
$lang->content_style = '문서 서식'; $lang->content_style = '문서 서식';
$lang->content_font = '문서 폰트'; $lang->content_font = '문서 폰트';
$lang->content_font_size = '문서 폰트 크기';
$lang->about_component = '컴포넌트 소개'; $lang->about_component = '컴포넌트 소개';
$lang->about_component_grant = '기본 컴포넌트외의 확장 컴포넌트 기능을 사용할 수 있는 권한을 지정할 수 있습니다.<br /> (모두 해제시 아무나 사용 가능합니다)'; $lang->about_component_grant = '기본 컴포넌트외의 확장 컴포넌트 기능을 사용할 수 있는 권한을 지정할 수 있습니다.<br /> (모두 해제시 아무나 사용 가능합니다)';
@ -45,6 +46,7 @@
$lang->about_editor_skin = '에디터 스킨을 선택하실 수 있습니다'; $lang->about_editor_skin = '에디터 스킨을 선택하실 수 있습니다';
$lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다'; $lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다';
$lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.'; $lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = '파일을 첨부할 수 있는 권한을 지정하실 수 있습니다. (모두 해제 시 아무나 첨부 가능합니다)'; $lang->about_upload_file_grant = '파일을 첨부할 수 있는 권한을 지정하실 수 있습니다. (모두 해제 시 아무나 첨부 가능합니다)';
$lang->about_default_component_grant = '에디터에서 사용되는 기본 컴포넌트를 사용할 수 있는 권한을 지정할 수 있습니다. (모두 해제 시 아무나 사용 가능합니다)'; $lang->about_default_component_grant = '에디터에서 사용되는 기본 컴포넌트를 사용할 수 있는 권한을 지정할 수 있습니다. (모두 해제 시 아무나 사용 가능합니다)';
$lang->about_editor_height = '에디터의 기본 높이를 지정하실 수 있습니다.'; $lang->about_editor_height = '에디터의 기본 높이를 지정하실 수 있습니다.';

View file

@ -18,6 +18,7 @@
$lang->component_grant = 'Настройки прав доступа'; $lang->component_grant = 'Настройки прав доступа';
$lang->content_style = 'Content Style'; $lang->content_style = 'Content Style';
$lang->content_font = 'Content Font'; $lang->content_font = 'Content Font';
$lang->content_font_size = '문서 폰트 크기';
$lang->about_component = 'О компоненте'; $lang->about_component = 'О компоненте';
$lang->about_component_grant = 'Только выбранным группам позволено использование.<br /> (Каждый может использовать его, если режим выключен)'; $lang->about_component_grant = 'Только выбранным группам позволено использование.<br /> (Каждый может использовать его, если режим выключен)';
@ -45,6 +46,7 @@
$lang->about_editor_skin = '에디터 스킨을 선택하실 수 있습니다'; $lang->about_editor_skin = '에디터 스킨을 선택하실 수 있습니다';
$lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다'; $lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다';
$lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.'; $lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = '파일을 첨부할 수 있는 권한을 지정하실 수 있습니다 (모두 해제시 아무나 첨부 가능합니다)'; $lang->about_upload_file_grant = '파일을 첨부할 수 있는 권한을 지정하실 수 있습니다 (모두 해제시 아무나 첨부 가능합니다)';
$lang->about_default_component_grant = '에디터에서 사용되는 기본 컴포넌트를 사용할 수 있는 권한을 지정할 수 있습니다. (모두 해제시 아무나 사용 가능합니다)'; $lang->about_default_component_grant = '에디터에서 사용되는 기본 컴포넌트를 사용할 수 있는 권한을 지정할 수 있습니다. (모두 해제시 아무나 사용 가능합니다)';
$lang->about_editor_height = '에디터의 기본 높이를 지정하실 수 있습니다'; $lang->about_editor_height = '에디터의 기본 높이를 지정하실 수 있습니다';

View file

@ -18,6 +18,7 @@
$lang->component_grant = '权限设置'; $lang->component_grant = '权限设置';
$lang->content_style = 'Content Style'; $lang->content_style = 'Content Style';
$lang->content_font = 'Content Font'; $lang->content_font = 'Content Font';
$lang->content_font_size = '문서 폰트 크기';
$lang->about_component = '组件简介'; $lang->about_component = '组件简介';
$lang->about_component_grant = '可以设置除默认组件外的扩展组件使用权限<br />(全部解除时任何用户都可以使用)。'; $lang->about_component_grant = '可以设置除默认组件外的扩展组件使用权限<br />(全部解除时任何用户都可以使用)。';
@ -45,6 +46,7 @@
$lang->about_editor_skin = '可以选择编辑器皮肤。'; $lang->about_editor_skin = '可以选择编辑器皮肤。';
$lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다'; $lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다';
$lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.'; $lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = '可以设置上传文件的权限(全部解除为无限制)。'; $lang->about_upload_file_grant = '可以设置上传文件的权限(全部解除为无限制)。';
$lang->about_default_component_grant = '可以设置编辑器默认组件的使用权限(全部解除为无限制)。'; $lang->about_default_component_grant = '可以设置编辑器默认组件的使用权限(全部解除为无限制)。';
$lang->about_editor_height = '可以指定编辑器的默认高度。'; $lang->about_editor_height = '可以指定编辑器的默认高度。';

View file

@ -18,6 +18,7 @@
$lang->component_grant = '權限設置'; $lang->component_grant = '權限設置';
$lang->content_style = '內容樣式'; $lang->content_style = '內容樣式';
$lang->content_font = '內容字體'; $lang->content_font = '內容字體';
$lang->content_font_size = '문서 폰트 크기';
$lang->about_component = '組件簡介'; $lang->about_component = '組件簡介';
$lang->about_component_grant = '除預設組件外,可設置延伸組件的使用權限<br />(全部解除時,任何用戶都可使用)。'; $lang->about_component_grant = '除預設組件外,可設置延伸組件的使用權限<br />(全部解除時,任何用戶都可使用)。';
@ -45,6 +46,7 @@
$lang->about_editor_skin = '選擇編輯器面板。'; $lang->about_editor_skin = '選擇編輯器面板。';
$lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다'; $lang->about_content_style = '문서 편집 및 내용 출력시 원하는 서식을 지정할 수 있습니다';
$lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.'; $lang->about_content_font = '문서 편집 및 내용 출력시 원하는 폰트를 지정할 수 있습니다.<br/>지정하지 않으면 사용자 설정에 따르게 됩니다<br/> ,(콤마)로 여러 폰트를 지정할 수 있습니다.';
$lang->about_content_font_size = '문서 편집 및 내용 출력시 원하는 폰트의 크기를 지정할 수 있습니다.<br/>12px, 1em등 단위까지 포함해서 입력해주세요.';
$lang->about_upload_file_grant = '設置上傳檔案的權限(全部解除為無限制)。'; $lang->about_upload_file_grant = '設置上傳檔案的權限(全部解除為無限制)。';
$lang->about_default_component_grant = '設置編輯器預設組件的使用權限(全部解除為無限制)。'; $lang->about_default_component_grant = '設置編輯器預設組件的使用權限(全部解除為無限制)。';
$lang->about_editor_height = '指定編輯器的預設高度。'; $lang->about_editor_height = '指定編輯器的預設高度。';

View file

@ -517,7 +517,7 @@
<script type="text/javascript">//<![CDATA[ <script type="text/javascript">//<![CDATA[
var editor_path = "{$editor_path}"; var editor_path = "{$editor_path}";
var auto_saved_msg = "{$lang->msg_auto_saved}"; var auto_saved_msg = "{$lang->msg_auto_saved}";
var oEditor = editorStart_xe("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", "{$editor_height}", "{$colorset}", "{$content_style}",'{$content_font}'); var oEditor = editorStart_xe("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", "{$editor_height}", "{$colorset}", "{$content_style}",'{$content_font}','{$content_font_size}');
//]]></script> //]]></script>
<!--@end--> <!--@end-->

View file

@ -2,10 +2,11 @@ if (!window.xe) xe = {};
xe.Editors = []; xe.Editors = [];
function editorStart_xe(editor_sequence, primary_key, content_key, editor_height, colorset, content_style, content_font) { function editorStart_xe(editor_sequence, primary_key, content_key, editor_height, colorset, content_style, content_font, content_font_size) {
if(typeof(colorset)=='undefined') colorset = 'white'; if(typeof(colorset)=='undefined') colorset = 'white';
if(typeof(content_style)=='undefined') content_style = 'xeStyle'; if(typeof(content_style)=='undefined') content_style = 'xeStyle';
if(typeof(content_font)=='undefined') content_font= ''; if(typeof(content_font)=='undefined') content_font= '';
if(typeof(content_font_size)=='undefined') content_font_size= '';
var target_src = request_uri+'modules/editor/styles/'+content_style+'/editor.html'; var target_src = request_uri+'modules/editor/styles/'+content_style+'/editor.html';
@ -150,6 +151,9 @@ function editorStart_xe(editor_sequence, primary_key, content_key, editor_height
if(content_font && !doc.body.style.fontFamily) { if(content_font && !doc.body.style.fontFamily) {
doc.body.style.fontFamily = content_font; doc.body.style.fontFamily = content_font;
} }
if(content_font_size && !doc.body.style.fontSize) {
doc.body.style.fontSize = content_font_size;
}
// run // run
oEditor.run(); oEditor.run();

View file

@ -65,6 +65,15 @@
<input type="text" name="content_font" value="{str_replace(array('"','\''),'',$editor_config->content_font)}" class="inputTypeText w400" /> <input type="text" name="content_font" value="{str_replace(array('"','\''),'',$editor_config->content_font)}" class="inputTypeText w400" />
</td> </td>
</tr> </tr>
<tr>
<th rowspan="2"><div>{$lang->content_font_size}</div></th>
<td colspan="2"><p>{$lang->about_content_font_size}</p></td>
</tr>
<tr>
<td colspan="2">
<input type="text" name="content_font_size" value="{$editor_config->content_font_size}" class="inputTypeText w80" />
</td>
</tr>
<tr> <tr>
<th rowspan="2"><div>{$lang->editor_height}</div></th> <th rowspan="2"><div>{$lang->editor_height}</div></th>
<td colspan="2"><p>{$lang->about_editor_height}</p></td> <td colspan="2"><p>{$lang->about_editor_height}</p></td>