Load the FCKeditor version 1.6 to a folder called FCKeditor in your public html folder.
Add this function to /ncp/cp/cp.publish.php just below the setFieldName function:
// Dynamically set the textarea name on a DblClick
function setFieldName2(which)
{
if (which != selField)
{
selField = which;
clear_state();
tagarray = new Array();
usedarray = new Array();
var oFCKeditor = new FCKeditor( selField ) ;
oFCKeditor.ReplaceTextarea() ;
}
}
Edit line 588 to look like this:
$DSP->input_textarea('field_id_'.$row['field_id'], $field_data, $rows, 'textarea', '99%', "ondblclick='setFieldName2(this.name)'", "onclick='setFieldName(this.name)'").
Add this line in /ncp/cp/cp.display.php at line 176:
"<script type='text/javascript' src='/FCKeditor/fckeditor.js'></script> \n";
To get it to activate simply double click on any textarea field.
To make the textarea a little larger simply adjust the fckeditor.js file in the FCKeditor folder. I made mine 400 high (the default is 200).
This is truly the best in-browser rich-text editor I have ever seen.
Add this function to /ncp/cp/cp.publish.php just below the setFieldName function:
// Dynamically set the textarea name on a DblClick
function setFieldName2(which)
{
if (which != selField)
{
selField = which;
clear_state();
tagarray = new Array();
usedarray = new Array();
var oFCKeditor = new FCKeditor( selField ) ;
oFCKeditor.ReplaceTextarea() ;
}
}
Edit line 588 to look like this:
$DSP->input_textarea('field_id_'.$row['field_id'], $field_data, $rows, 'textarea', '99%', "ondblclick='setFieldName2(this.name)'", "onclick='setFieldName(this.name)'").
Add this line in /ncp/cp/cp.display.php at line 176:
"<script type='text/javascript' src='/FCKeditor/fckeditor.js'></script> \n";
To get it to activate simply double click on any textarea field.
To make the textarea a little larger simply adjust the fckeditor.js file in the FCKeditor folder. I made mine 400 high (the default is 200).
This is truly the best in-browser rich-text editor I have ever seen.
RE: Implementing FCK 1.6 with Expression Engine
Any input is appreciated.