พอดีจะทำ blockquote ซึ่งต้องใช้งานร่วมกับ CKEditor API ติดอยู่ปัญหาที่ คลิ๊กเลือก blockquote ของ Comment มันกลับเอาแต่ Comment ที่ 1 มาตลอด ช่วยแก้ปัญหาหน่อยคราฟ
ตัวอย่างโค๊ด
ตัวอย่างโค๊ด
โค้ด เลือก
<script type="text/javascript">
function InsertHTML()
{
// Get the editor instance that we want to interact with.
var oEditor = CKEDITOR.instances.editor1;
var value = document.getElementById( 'htmlArea' ).value;
// Check the active editing mode.
if ( oEditor.mode == 'wysiwyg' )
{
// Insert HTML code.
// http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#insertHtml
oEditor.insertHtml( value );
}
else
alert( 'You must be in WYSIWYG mode!' );
}
</script>
</head>
<body>
<form action="sample_posteddata.php" method="post">
<textarea cols="100" id="editor1" name="editor1" rows="10"></textarea>
<script type="text/javascript">
//<![CDATA[
// Replace the <textarea id="editor1"> with an CKEditor instance.
var editor = CKEDITOR.replace( 'editor1' );
//]]>
</script>
<input onclick="InsertHTML();" type="button" value="Insert HTML" />
<br />
<textarea cols="100" id="htmlArea" rows="3">
<blockquote>
Comment1
</blockquote> </textarea>
<br /><input onclick="InsertHTML();" type="button" value="Insert HTML" />
<br />
<textarea cols="100" id="htmlArea" rows="3" >
<blockquote>
Comment2
</blockquote> </textarea>
</form>

แจ่มไปเลย

รอสักครู่่ จากนั้นรายละเอียดต่างๆ ก็จะปรากฏ รายละเีอียดเยอะมากครับ บอกถึงขนาดไฟล์ภาพ หรือไฟล์ใหนที่ทำให้ เว็บเราโหลดช้า ลองดูนะคับ