JOJ
踏踏实实做人,认认真真做事!放纵自己就是毁灭自己!

在Sharepoint2007里面,无论是发discussion还是blog,如果你想发一个视频,是不行的!【至少我这里是不可以的,不知还是另有设置】

下面让SharePoint自带的编辑器发视频,只需要拷贝别人写的JS既可以,简单吧! 感兴趣的朋友可以研究一下他的JS。

JS源码:

展开源码

使用方法:

To install this script:

1. upload both of the files (.js and .gif) to your masterpage folder on your root site. (http://yoursite.com/_catalogs/masterpage).  use SPD open .

2. Edit the master page of your site add the following line just below the </body> tag.

<script type="text/javascript" src="/_catalogs/masterpage/erte.js"></script>

That should do it.
If this saved you from lots of problems or you earned a lot of money with this open source project, please visit my blog (http://boris.gomiunik.net/erte) and donate couple of bucks to support the future of this project.

 

效果图:

使用前: 你也许会用HTML的形式添加视频 , 但是点击OK后,发现并没有视频

1 

使用后,发现多了个 按钮

2

点击红色按钮, 把你的视频HTML代码copy进去吧!

3

现在,就可以看到视频了!

5

使用后的源文件:

6 

当自定义sharepoint开发的时候,你需要用JS替换为如上格式的标记就可以了!

使用前的源文件: 注意对比一下上面的源文件

7

 文件下载

更多:http://erte.codeplex.com/

相关文章:使用sharepoint自带的文本编辑器

posted on 2010-09-14 14:12  JoinJ  阅读(615)  评论(0编辑  收藏  举报