 |
|
Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
<form id="form1" name="form1" method="post" action="<? $PHP_SELF; ?>">
<p>
<textarea name="textArea1" id="textArea1" cols="45" rows="5"></textarea>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'textArea1',
{
//fullPage : true
toolbar:
[ ['Bold', 'Italic', 'Underline', '-', 'Subscript', 'Superscript', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
['Outdent', 'Indent', '-', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], '/',
['Image', 'Flash', 'Smiley', '-', 'Table', 'HorizontalRule', 'SpecialChar','MediaEmbed'] ]
});
//]]>
</script>
</p>
<p>
<input type="submit" name="bt1" id="bt1" value="Submit" />
</p>
</form>
<? echo($textArea1); ?>
</body>
</html>

หลัง echo คับดูจาก firebug
ประมาณนี้อ่าคับ โค้ดยังคับอยู่แต่วิดีโอไม่ขึ้นคับ
ปล.ตอบเร็วมาก ขอบคุณนะคับ
|
 |
 |
 |
 |
Date :
2010-05-29 20:05:58 |
By :
northwild |
|
 |
 |
 |
 |
|
|
 |