Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/06/2016, 12:00
Juan228
 
Fecha de Ingreso: febrero-2008
Mensajes: 65
Antigüedad: 16 años, 3 meses
Puntos: 0
Problemas con CLEditor

Hola foro! Les comento, agrege a mi web el editor "CLEditor" a la hora de crear notas.


Les muestro el codigo:

Código PHP:
<?php session_start(); ?>

<!DOCTYPE html>
<html lang="es">

<head>
    <?php require_once("inc/header.php");?>
    <link rel="stylesheet" href="css/jquery.cleditor.css" />
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.cleditor.min.js"></script>
    <script>        $(document).ready(function () { $("#contenidoNota").cleditor(); });    </script>
</head>

<body>
<?php  
require_once("inc/cabecera.php");
require_once(
"inc/conexionObj.php");
require_once(
"inc/conexion.php");
require_once(
"inc/systemVariables.php");


$idNew =             $_GET['idNew'];
$idEdicion =         $_GET['ide'];
$nombreRevista =     $_GET['idr'];
$nombreSeccion =     $_GET['nombreSeccion'];
$idSeccion=         $_GET['idSeccion'];
$_SESSION['idSeccion'] = $idSeccion;



if(
$idNew == 2// Pregunta si se esta creando o editando una nota
{
$tituloNota "";
$subtituloNota "";
$contenidoNota "";
$enlaceNota "";
$masInformacionNota "";
$_SESSION['updateNota'] = 0;    
}
else
{
$idNota $_GET['idn'];

$consulta mysqli_query($conexion,"SELECT * FROM nota WHERE ID_NOTA = '$idNota'");
$nota mysqli_fetch_assoc($consulta); 


$tituloNota $nota['TITULO'];
$subtituloNota $nota['SUBTITULO'];
$contenidoNota $nota['CONTENIDO'];
$enlaceNota $nota['ENLACE'];
$masInformacionNota $nota['MAS_INFORMACION'];

$_SESSION['updateNota'] = 1;
$_SESSION['idUpdateNota'] = $idNota
}

?>

<div class="container">
  <div class="row">
    <div class="box">

      <div class="panel panel-default">
        <div class="panel-body">
          <center>
            <h4>MENU PRINCIPAL
              <div class="btn-group">
                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-chevron-down"></span></button>
                <ul class="dropdown-menu" role="menu">
                  <li><a href="gestionContenedista.php">Volver</a></li>
                </ul>
              </div>
            </h4>
          </center>
        </div>
      </div>

          <div class="panel panel-info"><div class="panel-heading"><center><h4> CREAR NOTA PARA LA SECCION <?php echo $nombreSeccion?></h4></center></div>
        <table class="table">

                <form class="form-horizontal" role="form" action="verSeccion.php" method="post">

                    <div class="form-group">
                        <div class="col-lg-11">
                            <br \>
                            <label class="control-label" for="nombreNota">Titulo </label>
                            <input type="text" name="nombreNota" class="form-control" id="nombreNota" value="<?php echo $tituloNota?>" required>
                            <br \>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <div class="col-lg-11">
                            <label class="control-label" for="subtituloNota">Subtitulo </label>
                            <input type="text" name="subtituloNota" class="form-control" id="subtituloNota" value="<?php echo $subtituloNota?>" required>
                            <br \>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-12">
                            <label class="control-label" for="contenidoNota">Contenido de la Nota</label><br />
                            <textarea class="form-control" rows="15" id="contenidoNota" name="contenidoNota" required><?php echo $contenidoNota?></textarea>
                            <br \>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-11">
                            <label class="control-label" for="enlaceNota">Enlace </label>
                            <input type="text" name="enlaceNota" class="form-control" id="enlaceNota" value="<?php echo $enlaceNota?>">
                            <br \>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-12">
                            <label class="control-label" for="masInformacionNota">Mas Informacion </label>
                            <input type="text" name="masInformacionNota" class="form-control" id="masInformacionNota" value="<?php echo $masInformacionNota?>">
                            <br \>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-lg-11">
                            <label class="control-label" for="ubicacionNota">Ubicacion de la Nota </label>
                            <input type="text" name="ubicacionNota" class="form-control" id="ubicacionNota" placeholder="ACA VA GOOGLE MAPS">
                            <br \>
                        </div>
                    </div>
                    
                            <div class="modal-footer">
                                <button type="submit" onclick="guardarTextArea()" name="crearNota" class="btn btn-success"><span class="glyphicon glyphicon-floppy-disk"></span> Guardar</button>
                                <a class="btn btn-danger" href="verSeccion.php?id=<?php echo $idEdicion?>&name=<?php echo $nombreRevista?>"><span class="glyphicon glyphicon-remove"></span> Cerrar</a>
                            </div>
                

                </form>

               
        </table>
      </div>
    </div>
  </div>
</div>


<?php 
require_once("inc/footer.php");         // Trae el footer 
 
?>                
</body>
</html>

El editor anda perfecto, el unico problema que tengo es que al enviar el FORM mediante POST, el campo del textarea me lo envia vacio.


alguuien tiene idea de como hacerlo anda bien? por que si saco el editor anda perfecto el campo