Solved

how to get the id and name of fck editor?

Posted on 2009-07-10
2
263 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

687 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