TinyMCE的与jQuery UI的对话框工作很好 [英] tinymce and Jquery UI dialog working nicely

查看:234
本文介绍了TinyMCE的与jQuery UI的对话框工作很好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些问题,jQuery UI的对话和TinyMCE的。结果
将数据传递到文本区域与用户界面对话框和jQuery效果很好。结果
因此,在这样的文本区域设置数据正常工作:

I'm having some problems with Jquery UI Dialog and TinyMCE.
Passing data to a text area works well with UI Dialog and Jquery.
So setting data in text area like this works fine:

        $("#MessageDialog #messageDto_Body").val(messagedata.Body);
        $("#MessageDialog").dialog("open");

当我附上TinyMCE的编辑器文本区它正确添加编辑器(和没有UI窗口文本区域的内容为preserved):

When I attach a tinyMCE editor to the text area it correctly adds the editor (and without the UI window the content of the text area is preserved):

tinyMCE.execCommand('mceAddControl', false, 'messageDto.Body');

通过用户界面对话框的区域是空的。

With UI Dialog the area is empty.

从我所看到的作品tinyMCE的隐藏真正的文本区,添加一个新的。
我也曾尝试把内容直接设置,但没有运气:

From what I have seen the tinyMCE works hiding the real text-area and adding a new one. I have also tried setting the content directly but no luck:

  tinyMCE.activeEditor.setContent(messagedata.Body, {format : 'bbcode'});

任何意见?

更新:取代与jqModal jQuery UI的对话和一切正常。我认为这个问题可以依靠不TinyMCE的,但在jQuery UI的对话框

UPDATE: substituted Jquery UI Dialog with jqModal and everything works. I think the problem could rely not in TinyMce but in the Jquery UI Dialog

推荐答案

也许jQuery的的在TinyMCE插件会有所帮助。

Perhaps the jQuery TinyMCE plugin will be helpful.

这篇关于TinyMCE的与jQuery UI的对话框工作很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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