开发者

cleditor problem with jquery ui effect()?

I'm using cleditor on one of my sites and I have run into a problem. When I use effect to animate some divs cleditor's wysiwyg editor stops 开发者_高级运维working. The editor itself shows but I cant type anything into it. I can view/edit the source on the editor just fine.

Code I use to toggle between divs:

function emailwizardplace(pold, pnew) {
    $("#wizard-" + pold).hide();
    $("#wizard-" + pnew).effect('slide');
    //$("#wizard-" + pnew).show(); <= This works without problems
}

Code for calling cleditor:

$("#tmessage").cleditor({
    width: 680,
    height: 400
});

As always any help is appreciated.


This seems to be a problem with the interaction between CLEditor and jQuery.UI. Have you tried this?

$("#tmessage").cleditor()[0].disable(false).refresh();

There's quite a bit of discussion in google groups on this problem. Here's one link that outlines the problem and what others have done. https://groups.google.com/forum/?fromgroups#!topic/cleditor/6W36CyPsaVU

Hope this helps.


function emailwizardplace(pold, pnew) {
    $("#wizard-" + pold).hide();
    $("#wizard-" + pnew).effect('slide');
    $("#wizard-" + pnew).show('slide',function(){
        $("#tmessage").cleditor({
            width: 680,
            height: 400
        });
    });
};

You have to place the call for the cleditor inside the .show()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜