FCKeditor2.6发布了,支持adobe AIR,
两段代码就可以搞定在AIR中使用FCKeditor
1.
<mx:HTML id="fck" location="fckeditor/_samples/adobeair/sample01.html" x="10" y="96" width="626">
</mx:HTML>
<mx:Button x="88" y="66" label="FCK" click="getHtml();"/>
2.
private function getHtml():void
{
trace(this.fck.htmlLoader.window.FCKeditorAPI.GetInstance('FCKeditor1').GetHTML());
}
FCKeditor1这个id是sample01.html里面的
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 400 ;
oFCKeditor.Value = '<p>FCKeditor is in the <strong>AIR</strong>!<//p>' ;
oFCKeditor.Create() ;