Solved

how to get the id and name of fck editor?

Posted on 2009-07-10
2
261 Views
Last Modified: 2012-08-14
unable to get the editor value. i am using the fck editor instead of textarea.

in case of textarea, it is easy to simply write the id and name like this.
<textarea rows="10" cols="10" name="try" id="try"></textarea>

we can easily get the id in this case.

but i am using fck editor. how can i assign id and name to it. name actually i know

include("fckeditor/fckeditor.php");
$content = $content_value ;
$hello = new FCKeditor('content1'); //content1 is the name ok
$hello->BasePath = '/new/modified_cms/login/fckeditor/';
$hello->Value = $content;
$hello->Create();*/

where is the id i can define?



0
Comment
Question by:designersx
[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 3

Expert Comment

by:Michal-Drozd
ID: 24823842
you have to edit FCKeditor/fckeditor.php

change line

$Html .= "<textarea name=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>" ;

to

$Html .= "<textarea name=\"{$this->InstanceName}\" id=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>" ;
0
 
LVL 9

Accepted Solution

by:
xBellox earned 125 total points
ID: 24823883
Usually, FCKeditor set the same value to ID and NAME properties.

You can view your source code to be sure.

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MySQL Persistent Connections 10 33
Hide and Unhide Table 6 25
How to hide contact form only if no validation errors 4 24
Slush on text 2 11
This article discusses how to create an extensible mechanism for linked drop downs.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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.
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)

756 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