我在我的一个项目中使用 FCKeditor。
<textarea name="Content_Arabic" id="Content_Arabic" cols="35" rows="4" class="txtfield"><?php echo (stripslashes(stripslashes($_POST['Content'])));?></textarea>
<script type="text/javascript">
var editor = new ew_DHTMLEditor("Content_Arabic");
editor.create = function() {
var sBasePath = 'FCKeditor/';
var oFCKeditor = new FCKeditor('Content_Arabic', '100%', 350, 'Default');
oFCKeditor.BasePath = sBasePath;
oFCKeditor.ReplaceTextarea();
oFCKeditor.rtl;
oFCKeditor.ContentLangDirection='rtl';
this.active = true;
}
ew_DHTMLEditors[ew_DHTMLEditors.length] = editor;
ew_CreateEditor(); // Create DHTML editor(s)
//-->
</script>
这个加载的编辑器,但它仍然是英式风格。
我希望它从右到左加载为阿拉伯语样式。