小编use*_*293的帖子

如何用jquery清除ckeditor

如何通过点击按钮/链接清除ckeditor textarea与jquery?

我试过这个:当我在PHP中初始化编辑器时$("textarea.editor").val('');,$("textarea.editor1").val('');我尝试使用最后的1$ckeditor->editor('editor1', $nDetails);

任何帮助将不胜感激.

<p>Details: 

    <?php

    // Helper function for this sample file.
    function printNotFound( $ver )
    {
        static $warned;

        if (!empty($warned))
            return;

        echo '<p><br><strong><span class="error">Error</span>: '.$ver.' not found</strong>. ' .
            'This sample assumes that '.$ver.' (not included with CKFinder) is installed in ' .
            'the "ckeditor" sibling folder of the CKFinder installation folder. If you have it installed in ' .
            'a different place, just edit this file, changing the wrong paths in …
Run Code Online (Sandbox Code Playgroud)

jquery ckeditor

13
推荐指数
2
解决办法
3万
查看次数

为什么两个没有边距的div之间会出现空格?

我不敢相信我甚至都在问这个,但显然周一早上进展不顺利.为什么我要在这两个div元素之间留一个空格?

<!DOCTYPE html>
<html>
<head>
 <title>Hello</title>
 <meta charset="UTF-8">
</head>
<body>
 <div style="margin:0;padding:0;min-height:200px;background-color:#c00;"></div>
 <div style="margin:0;padding:0;min-height:200px;background-color:#ccc;"><p>Hello</p></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

jsFiddle示例

html css

9
推荐指数
1
解决办法
8332
查看次数

如何使用jquery添加/删除类或样式

我有以下代码显示嵌套的ul并在点击时隐藏其他打开的.我的问题是如何将一个背景图像添加到打开嵌套ul的父li a中,并从它关闭的父li a中删除背景图像?

这是我的jquery:

$(document).ready(function() {
    $('ul ul').hide();

    $('ul li > a').click(function(event) {
        $('ul ul').hide('slow');


        $(this).parent().find('ul').show('slow');
    });

});;
Run Code Online (Sandbox Code Playgroud)

css jquery

3
推荐指数
1
解决办法
1万
查看次数

File API在IE9中不起作用

我正在尝试使用jQuery从我的表单中的输入字段中获取文件大小和文件类型.我认为它的工作显然不在IE 9中.任何见解都会非常感激

var my_field = this.files[0];

var myInteger = parseInt(my_field.size);

var myType = my_field.type;
Run Code Online (Sandbox Code Playgroud)

fileapi internet-explorer-9

2
推荐指数
1
解决办法
5008
查看次数

标签 统计

css ×2

jquery ×2

ckeditor ×1

fileapi ×1

html ×1

internet-explorer-9 ×1