Solved

two ckeditors textarea on the same page with two different widths

Posted on 2013-05-21
2
341 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 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

617 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