ecshop教程

ECSHOP商品添加视频修改编辑器支持flv格式

ecshop教程 51源码 11-30 人阅读

ECSHOP商品添加商品介绍默认是不支持直接把flv格式视频上传空间的,支持优酷等视频网站外链SWF格式的视频。

所以ECSHOP模板屋动手修改了下编辑器让他支持flv格式





安装步骤:

直接下载压缩包后,将文件夹includes/fckeditor/editor/下

includes/fckeditor/修改:fckconfig.js  51行

FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;

下面增加:
FCKConfig.Plugins.Add( 'flvPlayer','zh-cn') ;



3.

FCKConfig.ToolbarSets["Default"] = [
    ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
    '/',
    ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
    ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    ['Link','Unlink','Anchor'],
    ['Image','Flash','flvPlayer','UpFileBtn','Table','Rule','Smiley','SpecialChar','PageBreak'],
    '/',
    ['Style','FontFormat','FontName','FontSize'],
    ['TextColor','BGColor'],
    ['FitWindow','ShowBlocks','-','About']        // No comma for the last row.
] ;
FCKConfig.ToolbarSets["Basic"] = [
    ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
FCKConfig.ToolbarSets["Normal"] = [
  ['Cut','Copy','Paste','PasteText','PasteWord','-','Undo','Redo','-','Find','Replace','-','RemoveFormat'],
  ['Link','Unlink','-','Image','Flash','flvPlayer','UpFileBtn','Table'],
  ['FitWindow','-','Source'],
  '/',
  ['FontFormat','FontSize'],
  ['Bold','Italic','Underline'],
  ['OrderedList','UnorderedList','-','Outdent','Indent'],
  ['JustifyLeft','JustifyCenter','JustifyRight'],
  ['TextColor','BGColor']
] ;


说明:

'Image','Flash',后面增加:'flvPlayer',


百度网盘下载:ecshop编辑器添加flv格式视频插件