| Index
» Projekty
» phpMyEdit
» Fórum
» Using ckeditor and phpmyedit |
 |
theloz
Založený: 13.09.2009
Príspevky: 1
Zaslal: 2009-09-13 23:53
Návrat hore
Odpovedať s citátom
|
I've always prefered ckeditor against mcedit. I know it's am matter of choice, I don't want rise up a flame.
I found only a small problem to use it: textareas aren't dom-referred with an Id, just with the name. All I've done is adding
| Kód: |
if ($this->fdd[$k]['textarea']['id'] != "") {
echo ' id="'.$this->fdd[$k]['textarea']['id'].'"';
}
|
at around 1046 and 1198 lines of phpMyEditclass.php file in order to make an id definition available.
Then I've gone like
| Kód: |
'textarea' => array(
'rows' => 5,
'id' => 'text_news',
'cols' => 50),
|
To set the id of the textarea. Doing so it's almost easy to refer it with any js library or self made script, including ckeditor.
I hope anybody finds it useful.
Thanks to all the team for the marvelous software they did. It saves me lot of "backoffice-building" annoying work.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|