欢迎来到素材无忧网,按 + 收藏我们
登录 注册 退出 找回密码

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

时间: 2024-02-25 10:43 阅读: 作者:素材无忧网

ECSHOP商品添加商品介绍默认是不支持直接把flv格式视频上传空间的,支持优酷等视频网站外链SWF格式的视频。所以ECSHOP素材无忧动手修改了下编辑器让他支持flv格式
安装步骤:
直接下载压缩包后,将文件夹includes/fckeditor/editor/下
includes/fckeditor/修改:fckconfig.js 51行
FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
下面增加:
FCKConfig.Plugins.Add( 'flvPlayer','zh-cn') ;
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',

版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!

转载请注明: ecshop商品添加视频修改编辑器支持flv格式

标签: ecshop商品  
推荐文章
模板推荐