|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
chetamachado Smarty n00b
Joined: 19 Dec 2007 Posts: 1
|
Posted: Wed Dec 19, 2007 9:06 pm Post subject: fckeditor |
|
|
necesito adicionarle al fckeditor un diccionario para que me haga la correccion ortografica... favor de ayudarme en esto.
i need to add to my fckeditor any dictionary to do the spelling.. please help my with this
any answer write me back to zmachado@facinf.uho.edu.cu
thanks |
|
Back to top |
|
mrtinez Smarty Rookie
Joined: 31 Jan 2005 Posts: 26 Location: Mexico
|
Posted: Wed Jan 02, 2008 10:25 pm Post subject: fckeditor |
|
|
Hola chetamachado, ojala te de algo de luz... perdon por la tardanza en la respuesta pero no estaba en la oficina.
-------------en el PHP
require_once "FCKeditor/fckeditor.php";
$sm = new Smarty();
--yo lo uso asi porque mi campo es tipo blob
$obse = $conn->BlobDecode($mensaje->row["mensobse"]);
$FCK = new FCKeditor('obse') ;
$FCK->BasePath = '/FCKeditor/';
$FCK->Value = $obse;
$FCK->Height = 400;
$campo = $FCK->CreateHtml() ;
$sm->assign('campo', $campo);
$sm->display("mitemplate.tpl");
------ hasta aqui el PHP-------------
------ en el template ----------
---y en el template solo despliegas la variable donde dejaste todo... y lo adicional que quieras meter.. etiquietas... etc
{$campo}
espero que te sea de utilidad. saludos. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|