如何在ckeditor 4.10中删除“”

时间:2019-01-28 20:54:30

标签: javascript php ckeditor

这是我的配置文件:

CKEDITOR.editorConfig = function( config ) {
    config.language = 'es-mx';
    config.uiColor = '#66AB16';
    config.width = 1150;
    config.height = 370;
    config.basicEntities = false;
    config.entities = false;
    CKEDITOR.config.allowedContent = true; 
    config.fillEmptyBlocks = false
    config.extraPlugins = 'pastefromword';
    config.pasteFromWordRemoveStyles = false;
    config.htmlEncodeOutput = false;
    config.tabSpaces = 0; 
};

我收集数据的方式如下:

var textopanorama = CKEDITOR.instances['editorpanoramas'].getData();

然后我通过ajax将ir发送到了我的php 当我尝试对DB MYSQL进行sabe验证时,它删除了后跟“””的部分

 $usuario = $_POST['idusuario'];
                $municipio = $_POST['municipio'];
                $sector = $_POST['sector'];
                $texto =$_POST['resumen'];
                $query = mysqli_prepare($con, "INSERT INTO `panorama` (`creador`, `fecha_creacion`, `municipio`, `sector`, `contenido`)
                VALUES (?, ?, ?, ?, ?)");
                mysqli_stmt_bind_param($query,"isiis",$usuario,$fecha,$municipio,$sector,$texto);
                if (!$query->execute()) {
                    echo "Error (" . $query->errno . ") " . $query->error;
                }else{
                    echo "Guardado correctamente";
                }
                mysqli_stmt_close($query);

0 个答案:

没有答案