您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程

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

妙竹2023-12-31 00:11:14ecshop商城教程已有人查阅

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

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',

本文标签:

很赞哦! ()

留言与评论 (共有 条评论)
验证码:

本栏推荐

相关标签