这篇文章主要围绕FCKeditor安装FLV视频插件,适用所有CMS和fcp插件安装展开,旨在为您提供一份详细的参考资料。我们将全面介绍FCKeditor安装FLV视频插件,适用所有CMS的优缺点,解
这篇文章主要围绕FCKeditor安装FLV视频插件,适用所有CMS和fcp插件安装展开,旨在为您提供一份详细的参考资料。我们将全面介绍FCKeditor安装FLV视频插件,适用所有CMS的优缺点,解答fcp插件安装的相关问题,同时也会为您带来*源码分享让DEDECMS支持FLV视频、CKEditor/FCKEditor 使用 CKeditor 3.0.1 快速使用教程(含插入图片)、CKEditor/FCKEditor 使用FCKeditor 2.6.5 快速使用教程(含插入图片)、ckeditor添加插入flv视频的插件的实用方法。
本文目录一览:- FCKeditor安装FLV视频插件,适用所有CMS(fcp插件安装)
- *源码分享让DEDECMS支持FLV视频
- CKEditor/FCKEditor 使用 CKeditor 3.0.1 快速使用教程(含插入图片)
- CKEditor/FCKEditor 使用FCKeditor 2.6.5 快速使用教程(含插入图片)
- ckeditor添加插入flv视频的插件
FCKeditor安装FLV视频插件,适用所有CMS(fcp插件安装)
现在很多博客、CMS和论坛等WEB程序都使用了FCKeditor编辑器,根据自己网站的需要不同,有些网站需要添加FLV播放器功能,那么怎么实现这个功能呢,一些网站主来咨询烈火网小编,现在就来教大家安装FCKeditor安装FLV视频插件,这款插件是国外人专门为fckeditor制作的强大FLV视频播放器插件,可以自定义播放器界面色彩,支持单文件即XML文档列表调用。
首先downloadFCKeditor安装FLV视频插件,然后将文件夹flvplayer拷贝到fckeditor\editor\plugins\目录下,然后修改fckeditor/fckconfig.js此文件,在此文件中FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;下面加入以下代码:
FCKConfig.Plugins.Add( 'flvPlayer','zh-cn') ;
其中zh-cn对应lang文件夹下的语言包文件名;
然后在编辑器控制面板中加入视频按钮:
FCKConfig.ToolbarSets[ "Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates','flvPlayer'],
完成以上操作后,此时启动fckeditor编辑器需要在编辑器的toolbar上多了一个图标,点击此图标即可添加你的FLV视频文件了。
*源码分享让DEDECMS支持FLV视频
今天想要在织梦CMS源码的网站上传一个FLV视频教程,却发现织梦CMS默认不支持播放flv视频,只好自己想方案解决,在网上搜索下,还真有解决的办法。
修改办法:
*步,请大家打开/include/FCKeditor/editor/dia日志/dede_media.htm
然后在
if(playtype=="rm"
|| (playtype=="-" && (rurl.indexOf('.rm')>0 || rurl.indexOf('.rmvb')>0 || rurl.indexOf('.ram')>0)) )
{
revalue = "<embed src='"+ rurl +"' quality='hight' wmode='transparent' type='audio/x-pn-realaudio-plugin' autostart='true' controls='IMAGEWINDOW,ControlPanel,StatusBar' console='Clip1' width='"+ widthdd +"' height='"+ heightdd +"'></embed>\r\n";
}
的下面添加以下内容:
//播放代码flv开始
else if(playtype=="flv" || (playtype=="-" && (rurl.indexOf('.flv')>0 || rurl.indexOf('.swf')>0)) )
{
revalue = "<object id='player' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' name='player' width='"+ widthdd +"' height='"+ heightdd +"'> \r\n<param name='movie' value='/plus/player.swf'>\r\n<param name='allowfullscreen' value='true'>\r\n<param name='allowscriptaccess' value='always'>\r\n<param name='flashvars' value='file="+ rurl +"'>\r\n</object>";//播放代码flv开始结束
}
第二步,请大家上传player.swf到/plus目录。
本文章网址:http://www.ppssdd.com/code/24984.html。转载请保留出处,谢谢合作!CKEditor/FCKEditor 使用 CKeditor 3.0.1 快速使用教程(含插入图片)
因为直接把内容作为字符串给编辑器的 Value 属性赋值使用的是 JavaScript 代码,要让 JS 代码不受内容中双引号、换行等的干扰,只有先读入到 textarea 最方便。使用 CKeditor 3.0.1
<textarea cols="90" rows="10" id="content" name="content">cftea</textarea>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript">
<!--
CKEDITOR.replace("content");
//-->
</script>
可以看出,3.x 版本的使用非常方便,也不用担心会形成两个同名的 content。实际上 textarea 的 id 省略了也是可以的,因为 CKEditor 会先按 name 来查找,查找不到,再按 id 来查找。
并且编辑器会在 textarea 的位置替换原有的 textarea。
设置编辑器皮肤、宽高
<textarea cols="90" rows="10" id="content" name="content">cftea</textarea>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript">
<!--
CKEDITOR.replace("content",
{
skin: "kama", width:700, height:300
});
//-->
</script>