ecshop微信商城
  官方微博: 腾讯  
首页 > ECSHOP教程 > ECSHOP二次开发 > ECSHOP二次开发教程 > ECSHOP商品添加视频修改编辑器支持flv格式

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

ECSHOP教程 / ecshop 教程网(www.ecshop119.com) 2015-02-25

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

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





安装步骤:

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

  2. 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格式视频插件

转载请注明:ECshop119模板屋-ECshop教程网(全国最专业的ECSHOP插件制作商-专业ECSHOP二次开发)

帮助目录

在线反馈

可以将问题或建议反馈给我们。

提交在线反馈

与网友交流ECSHOP开发修改。

加入QQ群交流