我在我的一个网站上使用cleditor,我遇到了一个问题。当我使用effect来动画某个div时,cleditor的wysiwyg编辑器停止工作。编辑器本身会显示,但我不能在其中键入任何内容。我可以在编辑器上很好地查看/编辑源代码。
我用来在div之间切换的代码:
function emailwizardplace(pold, pnew) {
$("#wizard-" + pold).hide();
$("#wizard-" + pnew).effect('slide');
//$("#wizard-" + pnew).show(); <= This works without problems
}调用cleditor的代码:
$("#tmessage").cleditor({
width: 680,
height: 400
});我们将一如既往地感谢您的帮助。
发布于 2012-04-23 21:33:05
这似乎是CLEditor和jQuery.UI交互的问题,你试过了吗?
$("#tmessage").cleditor()[0].disable(false).refresh();在谷歌的群组中有相当多关于这个问题的讨论。这里有一个链接概述了问题和其他人所做的事情。https://groups.google.com/forum/?fromgroups#!topic/cleditor/6W36CyPsaVU
希望这能有所帮助。
发布于 2013-07-23 03:37:05
function emailwizardplace(pold, pnew) {
$("#wizard-" + pold).hide();
$("#wizard-" + pnew).effect('slide');
$("#wizard-" + pnew).show('slide',function(){
$("#tmessage").cleditor({
width: 680,
height: 400
});
});
};您必须将对cleditor的调用放在.show()
https://stackoverflow.com/questions/7538715
复制相似问题