ถามการเรียกใช้ CKeditor กับ textarea ที่อยู่ใน div หน่อยครับ

ถาม-ตอบ แนะนำไอเดียว โค้ดตัวอย่าง แนวทาง วิธีแก้ปัญหา ถามการเรียกใช้ CKeditor กับ textarea ที่อยู่ใน div หน่อยครับ

ถามการเรียกใช้ CKeditor กับ textarea ที่อยู่ใน div หน่อยครับ
<head>
<script src="ckeditor/ckeditor.js"></script>
</head>

<body>
<div>
<form action="test.php?ac=go" method="post" enctype="multipart/form-data">
            
<textarea name="n_body" id="n_body">
                This is my textarea to be replaced with CKEditor.
              </textarea>
 
            <script>
                // Replace the <textarea id="editor1"> with a CKEditor
                // instance, using default configuration.
                CKEDITOR.replace('n_body');
            </script>
              <input type="submit" name="button" id="button" value="Submit" />
</form>
</div>
</body>


คือฟรอมผมมันอยู่ใน div ครับ พอใส่ CKeditor เข้าไปมันใช่ได้นะครับแต่ เวลลาปรับความสูงของ Ckedit มันเสียครับ...เจ๋งเลยความสูงมั่วเลย

แต่ถ้าเอา div ออกใช้ได้ครับ แต่ในโค้ดจริงๆที่ผมใช้มันต้องมี DIV ครับ ผมจะแก้ไขยังไงดีครับ
 


Synchro743 171.4.43.xxx 02-03-2014 15:32:43

คำแนะนำ และการใช้งาน

สมาชิก กรุณา ล็อกอินเข้าระบบ เพื่อตั้งคำถามใหม่ หรือ ตอบคำถาม สมาชิกใหม่ สมัครสมาชิกได้ที่ สมัครสมาชิก


  • ถาม-ตอบ กรุณา ล็อกอินเข้าระบบ
  • เปลี่ยน


    ( หรือ เข้าใช้งานผ่าน Social Login )

 ความคิดเห็นที่ 1
เสียแบบไหนครับ เป็น กับ css หรือเปล่า
คงต้องไล่ปรับ css ดู


ninenik 115.67.163.xxx 02-03-2014
 ความคิดเห็นที่ 2
ไม่น่าจะเกี่ยวนะครับผมลอง Test แบบไม่มี css ก็เป็นครับ 
 


synchro743 171.4.43.xxx 02-03-2014 17:38
 ความคิดเห็นที่ 3

ลองดาวโหลด เวอร์ชั่น 4.3.3 มาใช้ดูน่ะครับ

http://ckeditor.com/download

และก็ลองทดสอบโค้ด ตามนี้ 

<!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>test ckeditor 4.3.3</title>
<script src="ckeditor/ckeditor.js"></script>
</head>

<body>

<div>
		<textarea cols="80" id="editor1" name="editor1" rows="10">test</textarea>
		<script>

			// Replace the <textarea id="editor"> with an CKEditor
			// instance, using default configurations.
			CKEDITOR.replace( 'editor1', {
				uiColor: '#14B8C4',
				width:700
			});

		</script>
</div>

</body>
</html>



ตัวอย่าง



 



ninenik 115.67.164.xxx 02-03-2014
 ความคิดเห็นที่ 4
ได้แล้วครับ ผมลองโหลดใหม่ดู เอาปลั๊กอินเสริมออกให้หมด หายเลย... ขอบคูรครับ


synchro743 171.4.43.xxx 04-03-2014 16:05
 ความคิดเห็นที่ 5
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="fluid"
     data-ad-layout-key="-6r+c2-i-3r+o0"
     data-ad-client="ca-pub-4861448179411251"
     data-ad-slot="5201125173"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>


teez1232002 49.49.110.xxx 20-08-2019 11:28
1






เว็บไซต์ของเราให้บริการเนื้อหาบทความสำหรับนักพัฒนา โดยพึ่งพารายได้เล็กน้อยจากการแสดงโฆษณา โปรดสนับสนุนเว็บไซต์ของเราด้วยการปิดการใช้งานตัวปิดกั้นโฆษณา (Disable Ads Blocker) ขอบคุณครับ