CLEditor多个实例调整为100%宽度

时间:2013-01-25 08:38:11

标签: javascript jquery cleditor

我已经成功实现了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();
    });

0 个答案:

没有答案