I am trying to get CKEditor to use an unique ID that I can use some jQuery to grab the value within a ajax request.
Can anyone suggest how I can set the ID for the editor?
Below is the code
http://pastebin.com/eTP7xnKr
I am trying to get CKEditor to use an unique ID that I can
Share
Try something like this, you can also set many other attributes:
$CKEditor->textareaAttributes = array(“id” => $fieldname, “cols” => 40, “rows” => 4, ‘style’ => “width: {$width}; height: {$height}; position: relative; overflow: auto;”);