在一个jQuery UI的标签JWYSIWYG或jHtmlArea [英] JWYSIWYG or jHtmlArea within a Jquery Ui Tab

查看:123
本文介绍了在一个jQuery UI的标签JWYSIWYG或jHtmlArea的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能让我的jwysiwyg和Jhtmlarea文本编辑器内一个AJAX工作负载jQuery UI的标签

正常加载时,两个文本编辑器的工作。

Both text editors work when loaded normally.

这加载在视图页面

 <script type="text/javascript">
 $(function() {
  $("#tabs").tabs();
 });
 </script>

这将加载通过AJAX页面上的查看页面

This loads the page via AJAX on the "View Page"

<li><a href="/page/edit/">Edit</a></li>

这将加载的Html区的编辑页面

This loads the Html Area on the "Edit Page"

<script type="text/javascript" charset="utf-8">
$(function(){
    $("textarea").htmlarea();
});
</script>

所有帮助将不胜AP preciated。

All help would be greatly appreciated.

推荐答案

因为你注入你想要的东西htmlarea-IZE到页面加载后的DOM,你必须把你的 $(文本区域)。htmlarea() Ajax调用回调函数内。

because you're injecting the things you're trying to htmlarea-ize into the DOM after the page loads, you have to put your $("textarea").htmlarea() inside the callback function of the ajax call.

这篇关于在一个jQuery UI的标签JWYSIWYG或jHtmlArea的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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