Solved

how to get the id and name of fck editor?

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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…
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)

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now