





近日,jQuery UI的开发团队宣布最新的1.7版本正式发布(点击下载),下面让我们看看新版本中有哪些改进吧。
Welcome to jQuery UI 1.7
 

兼容性
最新发布的 UI组件只能兼容jQuery 1.3,所以,如果你还在使用jQuery 1.2.6,就必须进行升级。同时值得注意的是1.7第一个和jQuery 1.3完全兼容的组件。
后续开发
虽然1.7已经发布,jQuery开发小组仍然在不断努力更新1.6版本,希望可以修正1.6版本中的一些问题,修正的版本将于下个月正式发布。
 
在1.7中,UI组建是通过一个全新设计的框架来实现的,它构建在一个全新的CSS框架之上,并且不仅仅支持jQuery UI组建的插件,还支持一些自定义的插...
常规的用法: 
在页面插入 
<script type="text/javascript" src="/editor/fck_editor/fckeditor.js"></script> 
<script type="text/javascript"> 
window.onload = function() 
{ 
var oFCKeditor = new FCKeditor('Content', 730, 450) ; 
oFCKeditor.BasePath = "/editor/fck_editor/"; 
oFCKeditor.ReplaceTextarea(); 
}
function getFckeditorText(editor_name) 
{ 
var oEditor = FCKeditorAPI.GetInstance(editor_name) ; 
returnValue = oEditor.GetXHTML(true);
return returnValue; 
} 
function checkData(sTargetName) { 
document.getElementById(sTargetName).value = getFckeditorText(sTargetName); 
//加入其它判断检测输入。 
r...
					  
利用Javascript取和设FCKeditor值也是非常容易的,如下:
// 获取编辑器中HTML内容
function getEditorHTMLContents(EditorName) { 
    var oEditor = FCKeditorAPI.GetInstance(EditorName); 
    return(oEditor.GetXHTML(true)); 
}
// 获取编辑器中文字内容
function getEditorTextContents(EditorName) { 
    var oEditor = FCKeditorAPI.GetInstance(EditorName); 
    return(oEditor.EditorDocument.body.innerText); 
}
// 设置编辑器中内容
function SetEditorContents(EditorName, ContentStr) { 
    var oEditor = FCKeditorAPI.GetInstance(EditorName) ; 
    oEditor.SetHTML(ContentStr) ; 
}
FCKeditorAPI是FCKedi...