' => 'Heading 6',
'' => 'Preformatted',
'' => 'Address'
)
);
// data for link targets drodown list in hyperlink dialog
SpawConfig::setStaticConfigItem("a_targets",
array(
'_self' => 'Self',
'_blank' => 'Blank',
'_top' => 'Top',
'_parent' => 'Parent'
)
);
// data for quick links dropdown (new in 2.0.6)
SpawConfig::setStaticConfigItem("quick_links",
array(
'http://spaweditor.com/' => 'SPAW Editor',
'http://forums.solmetra.com/' => 'SPAW Support Forums',
'http://blog.solmetra.com/' => 'Solmetra\'s Developer Blog'
),
SPAW_CFG_TRANSFER_SECURE
);
// toolbar sets (should start with "toolbarset_"
// standard core toolbars
SpawConfig::setStaticConfigItem('toolbarset_standard',
array(
"format" => "format",
"style" => "style",
"edit" => "edit",
"table" => "table",
"plugins" => "plugins",
"insert" => "insert",
"tools" => "tools"
)
);
// all core toolbars
SpawConfig::setStaticConfigItem('toolbarset_all',
array(
"format" => "format",
"style" => "style",
"edit" => "edit",
"table" => "table",
"plugins" => "plugins",
"insert" => "insert",
"tools" => "tools",
"font" => "font"
)
);
// mini core toolbars
SpawConfig::setStaticConfigItem('toolbarset_mini',
array(
"format" => "format_mini",
"edit" => "edit",
"tools" => "tools"
)
);
// colorpicker config
SpawConfig::setStaticConfigItem('colorpicker_predefined_colors',
array(
'black',
'silver',
'gray',
'white',
'maroon',
'red',
'purple',
'fuchsia',
'green',
'lime',
'olive',
'yellow',
'navy',
'blue',
'#fedcba',
'aqua'
),
SPAW_CFG_TRANSFER_SECURE
);
// SpawFm plugin config:
// global filemanager settings
SpawConfig::setStaticConfigItem(
'PG_SPAWFM_SETTINGS',
array(
'allowed_filetypes' => array('any'), // allowed filetypes groups/extensions
'allow_modify' => true, // allow edit filenames/delete files in directory
'allow_upload' => true, // allow uploading new files in directory
//'chmod_to' => 0777, // change the permissions of an uploaded file if allowed
// (see PHP chmod() function description for details), or comment out to leave default
'max_upload_filesize' => 0, // max upload file size allowed in bytes, or 0 to ignore
'max_img_width' => 0, // max uploaded image width allowed, or 0 to ignore
'max_img_height' => 0, // max uploaded image height allowed, or 0 to ignore
'recursive' => false, // allow using subdirectories
'allow_modify_subdirectories' => false, // allow renaming/deleting subdirectories
'allow_create_subdirectories' => false, // allow creating subdirectories
'forbid_extensions' => array('php'), // disallow uploading files with specified extensions
'forbid_extensions_strict' => true, // disallow specified extensions in the middle of the filename
),
SPAW_CFG_TRANSFER_SECURE
);
// directories
SpawConfig::setStaticConfigItem(
'PG_SPAWFM_DIRECTORIES',
array(
array(
'dir' => 'picture_library/',
'caption' => 'picture_library',
'params' => array(
'default_dir' => true, // set directory as default (optional setting)
'allowed_filetypes' => array('images')
)
),
),
SPAW_CFG_TRANSFER_SECURE
);
?>