TinyMCE错误通过jquery加载 [英] TinyMCE bug via jquery load

查看:98
本文介绍了TinyMCE错误通过jquery加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这种奇怪的错误,当我通过jquery加载tinymce 加载

I have this kind of strange bug when I load tinymce via jquery load,

之后第一次我点击下拉列表从列表(项目符号列表数字列表样式列表中选择一个项目,段落列表),当我通过jquery加载重新加载表单时,我收到图像中显示的错误。

After the first time I click the dropdown to select one item from the list (bullet list, number list, style list, paragraph list), I get the bug as shown in the image when I reload the form via jquery load.

任何想法? p>

Any idea?

推荐答案

jQuery将下拉元素附加到body标签,而不是在您创建的编辑器中。虽然这修复了一些IE问题,但它无法处理动态加载的编辑器dom元素,将页面上的下拉元素链接起来。

jQuery is attaching the drop down elements to the body tag instead of within the editor you have created. While this fixes some IE issue, it fails to deal with editor dom elements being loaded dynamically, stranding the drop down element on the page.

加载/卸载编辑器时,通过jQuery删除页面上的所有tinymce drop菜单:

When loading/unloading an editor, remove all tinymce drop menus on the page via jQuery:

$(".mceListBoxMenu").remove();

我已经测试了这个解决方案,它的工作正常。

I have tested this solution, and it works fine.

这篇关于TinyMCE错误通过jquery加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆