Linux在Flash播放器领域终于成为了主流的操作系统了,Adobe今天发布了支持Linux的Adobe Flash Player 10,给Linux的多种媒体封装格式带来了极大的方便。在过去Linux在这个领域只能算是二流的成员,得不到Flash播放器的青睐,2007年Linux用户就是在其他主流平台使用Flash 9长达6个月之后,才迎来Linux版本。
如今,当微软决定将Linux平台Silverlight技术推迟发布之后,Adobe给Linux平台带来了“平等”的播放器,并称“Flash播放 器已经占据了互联网桌面市场98%的份额”,同时,“80%的在线视频均采用Adobe的Flash技术”,而且在9个月之后,Flash9将占据互联网 桌面市场90%的份额。
Flash Player 10是配合Adobe Creative Suite (CS) 4发布的客户端软件,提供了对Photoshop和Illustrator创建矢量绘图的支持,并支持2D和3D多种特效。
Adobe反复强调他的“Open Screen Project”,在今年5月份他就提出这个计划,称他们将免费开放的文件格式和API,使得Flash可以在移动设备上和桌面市场一样被广泛使用。
在Microsoft Silverlight 发布不久, mono小组就开始了linux下的Silverlight实现,名称叫Moonlight,代码olive,也就是在短短的一个月左右的时间,Moonlight已经可以运行。
Note: This is an unedited contribution. If this article is inappropriate, needs attention or copies someone else's work without reference then please Report This Article
However, to integrate FCKeditor in ASP.NET MVC environment, we have to follow some tricky steps. Here I will show how to integrate using core JavaScript as well as using JQuery.
Unzip the package and put in your project content directory. I liked to make a directory "JavaScript" under "Content" directory and put "unzipped fckeditor" here. I have also put fckeditorapi.js in "Javascript" folder. You can get more information on FCKeditor API here
Include the following to replace textarea (named 'content') by FCKeditor. Here I have included InsertContent(), ShowContent() and ClearContent() methods to perform some extra actions.
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'content' ) ;
oFCKeditor.BasePath = "/Content/Javascript/fckeditor/" ;
oFCKeditor.Height = 300;
oFCKeditor.ReplaceTextarea() ;
}
function InsertContent()
{
var oEditor = FCKeditorAPI.GetInstance('content') ;
var sample = document.getElementById("sample").value;
oEditor.InsertHtml(sample);
}
function ShowContent()
{
var oEditor = FCKeditorAPI.GetInstance('content') ;
alert(oEditor.GetHTML());
}
function ClearContent()
{
var oEditor = FCKeditorAPI.GetInstance('content');
oEditor.SetHTML("");
}
</script>
Include the following to replace textarea (named 'content') by FCKeditor. Here I have included InsertContent(), ShowContent() and ClearContent() methods to perform some extra actions.
<script type="text/javascript">
$(document).ready(function(){
$.fck.config = {path: '/Content/Javascript/fckeditor/', height: 300 };
$('textarea#content').fck();
});
function InsertContent()
{
var sample = document.getElementById("sample").value;
$.fck.insertHtml('fck1', sample);
}
function ShowContent()
{
alert($.fck.content('fck1', ''));
}
function ClearContent()
{
$.fck.clearHtml('fck1');
}
</script>
In jquery.FCKEditor.js file, I have included two functions. Function insertHtml() inserts html content into fckeditor and clearHtml() clears the content.
// insert Html Content
insertHtml: function(i, v) {
try{
var x = FCKeditorAPI.GetInstance(i);
if(v) x.InsertHtml(v);
elsereturn'';
}
catch(e) { return''; };
},
// clear Html Content
clearHtml: function(i) {
try{
var x = FCKeditorAPI.GetInstance(i);
x.SetHTML('');
}
catch(e) { return''; };
},
Step 5
Now build the application and run. Click the "FCK Editor By JQuery" link and get the result. Enjoy It!