Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript CLEditor多个实例以100%宽度调整大小_Javascript_Jquery_Cleditor - Fatal编程技术网

Javascript CLEditor多个实例以100%宽度调整大小

Javascript CLEditor多个实例以100%宽度调整大小,javascript,jquery,cleditor,Javascript,Jquery,Cleditor,我已经成功地实现了宽度为100%的CLEditor,但我似乎无法无休止地调整大小 //Initialize WYSIWYG var editorTextarea1 = $('#registration-confirmation'), editorWrapper1 = editorTextarea1.parent(), editor1 = editorTextarea1.cleditor({ width: '100%', heigh

我已经成功地实现了宽度为100%的CLEditor,但我似乎无法无休止地调整大小

    //Initialize WYSIWYG
    var editorTextarea1 = $('#registration-confirmation'),
    editorWrapper1 = editorTextarea1.parent(),
    editor1 = editorTextarea1.cleditor({
        width:  '100%',
        height: 350
    })[0];

    // Update size when resizing
    editorWrapper1.sizechange(function()
    {
        editor1.refresh();
    });

    var editorTextarea2 = $('#thank-you-message'),
    editorWrapper2 = editorTextarea2.parent(),
    editor2 = editorTextarea2.cleditor({
        width:  '100%',
        height: 350
    })[0];

    // Update size when resizing
    editorWrapper2.sizechange(function()
    {
        editor2.refresh();
    });

我建议使用像“cleditorFullScreen”这样的类,然后在单击.hasClass()的按钮时进行检查