Sergey Ten
01-23-2007, 02:11 PM
The FCKeditor in the "suggest links"
[Open your suggest-link.php]
[Find code]
$gDirSmarty->assign_by_ref('msg', $msg);
$gDirSmarty->assign('error', $error);
[After it add that code]
require_once("classes/DirFckeditor.php");
$Editor = new FCKeditor('description');
$Editor->Value = $content;
$Editor->Height = 300;
$fckeditor = $Editor->CreateHTML();
$gDirSmarty->assign('fckeditor', $fckeditor);
[Save change]
[Open your templates/your_template/suggest-link.tpl]
[Find code]
<textarea name="description" cols="60" rows="8" onKeyDown="textCounter(document.suggest_link.description,docu ment.suggest_link.length,{$config.description_max_ chars})" onKeyUp="textCounter(document.suggest_link.description,docu ment.suggest_link.length,{$config.description_max_ chars})">{if $link.$key}{$link.$key}{else}{$field.default}{/if}</textarea><br />
[Replace with]
{$fckeditor}
[Save change]
P.S. It is MOD just for PRO 2.0
[Open your suggest-link.php]
[Find code]
$gDirSmarty->assign_by_ref('msg', $msg);
$gDirSmarty->assign('error', $error);
[After it add that code]
require_once("classes/DirFckeditor.php");
$Editor = new FCKeditor('description');
$Editor->Value = $content;
$Editor->Height = 300;
$fckeditor = $Editor->CreateHTML();
$gDirSmarty->assign('fckeditor', $fckeditor);
[Save change]
[Open your templates/your_template/suggest-link.tpl]
[Find code]
<textarea name="description" cols="60" rows="8" onKeyDown="textCounter(document.suggest_link.description,docu ment.suggest_link.length,{$config.description_max_ chars})" onKeyUp="textCounter(document.suggest_link.description,docu ment.suggest_link.length,{$config.description_max_ chars})">{if $link.$key}{$link.$key}{else}{$field.default}{/if}</textarea><br />
[Replace with]
{$fckeditor}
[Save change]
P.S. It is MOD just for PRO 2.0