开发者

JWYSIWYG or jHtmlArea within a Jquery Ui Tab

I am not able to get my jwysiwyg and Jhtmlarea text editors to work within an AJAX loaded Jquery UI Tab

Both text editors work when loaded normally.

This loads the tabs on开发者_如何学JAVA the "View Page"

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

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

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

This loads the Html Area on the "Edit Page"

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

All help would be greatly appreciated.

Tim


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜