function ueditor_config_default in UEditor - 百度编辑器 7.3
Same name and namespace in other branches
- 7.2 ueditor.module \ueditor_config_default()
Default ueditor config array.
3 calls to ueditor_config_default()
- ueditor_settings in editors/
ueditor.inc - Return runtime editor settings for a given wysiwyg profile.
- ueditor_settings_form in editors/
ueditor.inc - Enhances the editor profile settings form for UEditor.
- _ueditor_controller in ./
ueditor.module - The main entrance of ueditor command.
File
- ./
ueditor.module, line 162 - Integration ueditor for wysiwyg.
Code
function ueditor_config_default($settings = NULL) {
$settings['language'] = 'en';
$settings['initial_content'] = '';
$settings['zindex'] = 500;
$settings['initialFrameHeight'] = 320;
$settings['auto_height'] = TRUE;
$settings['auto_float'] = TRUE;
$settings['allowdivtop'] = FALSE;
$settings['show_elementpath'] = TRUE;
$settings['show_wordcount'] = TRUE;
$settings['imagePathFormat'] = '/%b%f/ueditor/%u/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}';
$settings['scrawlPathFormat'] = '/%b%f/ueditor/%u/upload/scrawl/{yyyy}{mm}{dd}/{time}{rand:6}';
$settings['filePathFormat'] = '/%b%f/ueditor/%u/upload/file/{yyyy}{mm}{dd}/{time}{rand:6}';
$settings['fileManagerListPath'] = '/%b%f/ueditor/%u/upload/file/';
$settings['catcherPathFormat'] = '/%b%f/ueditor/%u/upload/catcher/{yyyy}{mm}{dd}/{time}{rand:6}';
$settings['imageManagerListPath'] = '/%b%f/ueditor/%u/upload/image/';
$settings['snapscreenPathFormat'] = '/%b%f/ueditor/%u/upload/snapscreen/{yyyy}{mm}{dd}/{time}{rand:6}';
$settings['videoPathFormat'] = '/%b%f/ueditor/upload/%u/video/{yyyy}{mm}{dd}/{time}{rand:6}';
$settings['toolbars'] = array(
array(
'fullscreen',
'source',
'|',
'undo',
'redo',
'|',
'bold',
'italic',
'underline',
'fontborder',
'strikethrough',
'superscript',
'subscript',
'removeformat',
'formatmatch',
'autotypeset',
'blockquote',
'pasteplain',
'|',
'forecolor',
'backcolor',
'insertorderedlist',
'insertunorderedlist',
'selectall',
'cleardoc',
'|',
'rowspacingtop',
'rowspacingbottom',
'lineheight',
'|',
'customstyle',
'paragraph',
'fontfamily',
'fontsize',
'|',
'directionalityltr',
'directionalityrtl',
'indent',
'|',
'justifyleft',
'justifycenter',
'justifyright',
'justifyjustify',
'|',
'touppercase',
'tolowercase',
'|',
'link',
'unlink',
'anchor',
'|',
'imagenone',
'imageleft',
'imageright',
'imagecenter',
'|',
'simpleupload',
'insertimage',
'emotion',
'scrawl',
'insertvideo',
'music',
'attachment',
'map',
'gmap',
'insertframe',
'insertcode',
'webapp',
'pagebreak',
'template',
'background',
'|',
'horizontal',
'date',
'time',
'spechars',
'snapscreen',
'wordimage',
'|',
'inserttable',
'deletetable',
'insertparagraphbeforetable',
'insertrow',
'deleterow',
'insertcol',
'deletecol',
'mergecells',
'mergeright',
'mergedown',
'splittocells',
'splittorows',
'splittocols',
'charts',
'|',
'print',
'preview',
'searchreplace',
'help',
'drafts',
),
);
if (variable_get('ueditor_enable_formula_editor', 0)) {
$settings['toolbars'][0][] = 'kityformula';
}
return $settings;
}