Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

two ckeditors textarea on the same page with two different widths

Posted on 2013-05-21
2
Medium Priority
?
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 2000 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

Give Your Engineering Team a Productivity Boost

Learn why container technology is so powerful and how it can provide your team with productivity gains and other benefits.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

715 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