Este artículo describe el JS Integration FCKEditor y el método para juzgar si el contenido está vacío. Compártelo para su referencia, como sigue:
<script type = "text/javaScript"> <!-// calcula automáticamente la ruta base del editor basada en el directorio _samples.// Esto es útil solo para estas muestras. Una aplicación real debe usar algo como esto: // ofckeditor.basePath = '/fckeditor/'; // '/fcKEditor/' es el valor predeterminado.var sbasepath = '/fcKeditor/'; var ofCkeditor = new FcKeditor ('News_Content'); ofCkeditor.BasePath = sBasePath; ofCkeditor.height = 400; ofCkeditor.width = 600; ofCkeditor.value = '' ' ; ofckeditor.create (); //-> // Obtener la longitud de la función de contenido FCK getMessageLength (str) {var oEditor = fckeditorapi.getInstance (str); var odom = oEditor.EditordOcument; varía; if (document.all) // if Internet Explorer. {ilength = odom.body.inntext.length; } else // si gecko. {var r = Odom.CreaterGe (); R.SelectNodeContents (Odom.Body); ilength = r.ToString (). Longitud; } // oeditor.inserthtml ('' ') return il longitud} function checkPost () {if (getMessageLength ("news_content") ==' 0 ') {alert (' por favor ingrese contenido '); devolver falso; }} // Función de contenido FCK getMessageContent (str) {var oEditor = fcKedIterApi.getInstance (str); return oEditor.getxhtml ();} </script>Cuando hay la siguiente configuración config.php:
$ Config ['userFileSpath'] = '/upload/'; $ config ['loodExtensions'] ['image'] = array ('bmp', 'gif', 'jpeg', 'jpg', 'png'); $ configuración ['neniedExtensions'] ['image'] = array (); $ config ['fileTyPespath'] ['[' image '[' image '] = $ neniedExtensions'] ['Image'] = array (); $ config ['fileTyPespath'] ['[' image '[' [''] . 'Image/'; $ config ['filetypesabsolutePath'] ['image'] = ($ config ['userFilesabSolutePath'] == '')? '': $ Config ['userFilesabSolutePath']. 'Image/'; $ config ['QuickUploadPath'] ['Image'] = $ config ['UserFileSpath']; $ config ['QuickUploadabSolutePath'] ['Image'] = $ config ['UserFilesabSOlUtepath']];Al cargar, la carga rápida se cargará directamente en el directorio de carga.
La carga no rápida se cargará en el directorio de carga/imagen
Al navegar por el servidor
La navegación de imágenes apuntará a cargar/imagen
Por lo tanto, las imágenes cargadas rápidamente no se pueden navegar al navegar por el servidor.
PD: Aquí, el editor recomienda varias herramientas de formato de código para usted, creo que se puede usar en el desarrollo futuro de programación:
C estilo de lenguaje/HTML/CSS/JSON Código de formato y herramientas de embellecimiento:
http://tools.vevb.com/code/ccode_html_css_json
Terrenos de embellecimiento y formato de código de JavaScript en línea:
http://tools.vevb.com/code/js
BATILización del código JavaScript/compresión/formato/herramientas de cifrado:
http://tools.vevb.com/code/jscompress
VERIFICACIÓN DE CÓDIGO JSON, INSPECCIÓN, BABÍA DE HERRAMIENTAS DE CÓDIGO Y FORMATO:
http://tools.vevb.com/code/json
Código JSON Formateo en línea/embellecimiento/compresión/edición/herramientas de conversión:
http://tools.vevb.com/code/jsoncodeformat
For more information about JavaScript, please check this site's special topics: "Summary of Ajax Operation Skills in JavaScript", "Summary of JSON Operation Skills in JavaScript", "Summary of JavaScript switching effects and techniques", "Summary of JavaScript search algorithm techniques", "Summary of JavaScript animation effects and techniques", "Summary of JavaScript errors and debugging Técnicas "," Resumen de las estructuras de datos de JavaScript y las técnicas de algoritmo "," Resumen de algoritmos y técnicas de recorrido de JavaScript ", y" Resumen del uso de operaciones matemáticas de JavaScript "
Espero que este artículo sea útil para la programación de JavaScript de todos.