Re: Editor FCKeditor

From: Date: Thu, 14 Aug 2008 12:00:21 +0000
Subject: Re: Editor FCKeditor
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-63044@lists.php.net to get a copy of this message
Prueba con esto: <? $oFCKeditor = new FCKeditor('det_conocido') ; $oFCKeditor->BasePath = "utiles/FCKeditor/"; $oFCKeditor->Value = eregi_replace("'","\\'",eregi_replace("[\n\r<file://'%22,eregi_replace(%22[/n/r>]","", $tuvariableconeltexto)); $oFCKeditor->ToolbarSet = "Complete" ; $oFCKeditor->InstanceName = "det_conocido" ; $oFCKeditor->Width=600; $oFCKeditor->Height=250; $oFCKeditor->Create() ; ?> 2008/8/11 Salva <boletinsalva@yahoo.es> > Hola, estoy intentado hacer un un editor de noticias, he utilizado el > FCKeditor para que se puedan poner formatos, negritas colores, etc al > texto, > el problema es que no se como leer en php de forma correcta para que se > salga el texto con todos los formatos aplicados. > > En el primer archivo genero el formulario con el FCKeditor esto funciona > perfectamente: > > > .............<form method="post" name="form1" > action="leer_variables.php"> > <legend>Ejemplo</legend> > <table cellpadding="2" cellspacing="0"> > <tbody><tr> > <td valign="top"><label > for="Nombre">T&iacute;tulo:</label></td> > <td><input name="titulo" id="titulo" value="" > size="28" type="text"> > </td> > </tr> > <tr> > <td valign="top"><label > for="Mensaje">Mensaje:</label></td> > <td><?php > // Creamos El Area de Texto description_art > $oFCKeditor = new FCKeditor('nombre_del_textarea') ; // es el id y name > del campo de texto > $oFCKeditor->BasePath = 'fckeditor/'; // ruta al script fckeditor > $oFCKeditor->Width = '700' ; // ancho del formulario > $oFCKeditor->Height = '500' ; // alto del formulario > $oFCKeditor->Create() ; // ordena se cree el textarea > ?> </td> > </tr> > </tbody></table> > <input name="enviar" id="enviar" value="Enviar" > class="enviar" > type="submit"> > </form> ............... > > Desde este otro archivo leo las variables: > > <?php > > $titulo =$_POST['titulo']; > > > $editor = $_POST['nombre_del_textarea']; > > > echo 'El valor de Titulo es ' . $titulo; > echo '<br>'; > echo $editor ; > echo '<br>'; > > > > ?> > > El problame esque no me lee bien los formatos ni los colores. > ¿como puedo hacer para que recoga de forma exacta este valor?, para poder > verlo y almacenarlo en la DB. > > Gracias. > > > > > > -- > PHP Spanish Localization Talk Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -------------------------------------------------------- Israel Navas Malpartida Email: isral16@gmail.com --------------------------------------------------------

« previous php.general.es (#63044) next »