Solved

two ckeditors textarea on the same page with two different widths

Posted on 2013-05-21
2
339 Views
Last Modified: 2013-05-23
using php, ckeditor

is there a way to have two ckeditors textarea on the same page with two different widths

textarea1 width="500px"
textarea2 width="200px"
0
Comment
Question by:rgb192
2 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39186515
You have a good solution only the buttons seems some boring. Ckeditor provide you 100% width that's why you can wrap textarea1 to a div and textarea2 to another div like:

.small{
	width:200px;
}
.big{
	width:500px;
}

Open in new window

Now wrap the text area in div like:

 <div class="small">
			<textarea class="ckeditor" id="editor1" name="editor1" cols="100" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
            </div>
<div class="big">
            <textarea class="ckeditor" id="editor1" name="editor1" cols="100" rows="10"></textarea>
</div>

Open in new window

0
 

Author Closing Comment

by:rgb192
ID: 39191180
ckeditor fills the div

thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question