473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CHeditor problem: hiding textarea field.

228 100+
Am new to CKEditor though I have used tinymce before. What I liked about cheditor is its drop down styles feature.

But I can't seem to get it to work at all.

here is my code:

Expand|Select|Wrap|Line Numbers
  1. <head>
  2. <script language="javascript" type="text/javascript" src="javas/ckeditor.js"></script>
  3. <script src="sample.js" type="text/javascript"></script>
  4. <link href="sample.css" rel="stylesheet" type="text/css" />
  5.  
  6. </head>
  7.  
and in body:

Expand|Select|Wrap|Line Numbers
  1. <textarea class="ckeditor" cols="80" id="content" name="content" rows="10"></textarea>
  2.  
I even tried with code like this but it didnt change anything:

Expand|Select|Wrap|Line Numbers
  1. <textarea cols="80" id="content" name="content" rows="10"></textarea>
  2.          <script type="text/javascript">
  3.          //<![CDATA[
  4.  
  5.             // This call can be placed at any point after the
  6.             // <textarea>, or inside a <head><script> in a
  7.             // window.onload event handler.
  8.  
  9.             // Replace the <textarea id="editor"> with an CKEditor
  10.             // instance, using default configurations.
  11.             CKEDITOR.replace( 'content' );
  12.  
  13.          //]]>
  14.  
Looking at source, I see this style added to my textarea field :

Expand|Select|Wrap|Line Numbers
  1. visibility:hidden
  2.  
I didn't add it at all but CHEDITOR is adding it and thus the field is hidden.

In the same page, I have the following JQUERY files in place but it doesnt work even if I remove it:

Expand|Select|Wrap|Line Numbers
  1. <script language="javascript" type="text/javascript" src="javas/jquery.js"></script>
  2. <script language="javascript" type="text/javascript" src="javas/jquery.validate.min.js"></script>
  3. <script language="javascript" type="text/javascript" src="javas/newvalidate.js"></script>
  4. <script language="javascript" type="text/javascript" src="javas/aj.js"></script>
  5.  
Please share. If there is any text editor that you know which supports STYLES (because I want to have a consistent style code thru out the site instead of inline styles now and then), please share. Just it have to be easy to integrate.
Jan 21 '11 #1
0 1270

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: J. VerSchave | last post by:
I am curious if there is a way to handle this... maybe with Javascript... Is there a way to set a TEXTAREA field so that the tab key on the user's keyboard will create a tab within the text...
14
by: jlemay | last post by:
if you look at http://www.emrose.net/contact1.html the last field is a textarea field and I can't make it align with the other text fields. it's pretty close, but this comes from trial and...
0
by: Tom Z. | last post by:
Hi All, I'm trying to make an assembly in C# to use as a COM server. I'm building as normal and ruinning regasm at the end. Everything is generally working, except that I'm having a problem...
3
by: Blue | last post by:
The JS below will insert predefined text into the area text box when you click on the smileys. This sample script is working fine. But my problem is, in my PHP script, the "myfieldname" below is...
2
by: K. | last post by:
I have such a text <input type="text" name="search_txt" value=""> <textarea name="txt_m"> My hobby is bicycle. My hobby is driving a car. </textarea> I would like to bold and color a...
4
by: arizal | last post by:
Hello friends, I am having hard time working with text area on my html form. I dont know why but i am getting some extra space on my text area. So becuase of this reasom i am also not able to...
2
by: sagarneo11 | last post by:
how to make script for hiding the field by radio button in the document in the adobe livecycle designer 8.0
11
by: JJ297 | last post by:
I want to hide the Pin field below in my repeater. How do I do this? <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <tr> <td><font...
2
by: Khushbu84 | last post by:
Hello, I am having a problem to display my text in the beginning of the Textarea. For some reason It just keeps some spaces and then starts displaying. I am trying to display answers of selected...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.