PDA

View Full Version : giúp đỡ cấu hình toolbar fckeditor



dokhacluan
18-01-2010, 13:35
file 1.php
/////////////////////////////////////////////////////////////////
<html>
<head>
<title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="fckeditor/fckconfig.js"></script>


</head>
<body>
<form>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.ToolbarSet = 'Suc' ;
oFCKeditor.Create() ;
</script>

</form>
</body>
</html>

///////////////////////////////////////////////////////////////////

cau hinh oFCKeditor.ToolbarSet = 'Suc' ; nhu sau (cau hình trong fckconfig.js)

FCKConfig.ToolbarSets["Suc"] = [
['Source','-','DocProps'], '/', ['Bold','Italic']
// No comma for the last row.
] ;


/////////////////////////////////////////

mong muốn la chỉ muốn tạo riêng lẽ vài nut lenh thoi (vi du nhu dam , nghieng , gach duoi , hinh anh ...)(va không phải sử dụng oFCKeditor.ToolbarSet = 'Basic') nhưng khong dc
/////////////////////////

Bạn nào giúp với (nếu ban dung editor khác thi cung dc)(hoac cac ban có thể cho mình xin cách tao 1 tẽt editor với )(đã tham khảo http://www.ddth.com/showthread.php?t=160685 nhưng thấy nó chạy khong tot tren ie và mây cai nut bold , italic lúc nhạy lúc hông)