3

I am using nicedit.js and jQuery UI accordion.
I have several accordions that contain these nicedit WYSIWYG text areas.

When I refresh the page the first accordion area opens up and displays the correct nicedit WYSIWYG area (Width is 100%).
When I select another accordion area it opens up and displays the nicedit WYSIWYG area but it is only 100px wide.

I did some digging around in the code and found that it uses 100% as a width throughout the building process. I have run into this with jQuery UI accordion not letting things render correctly before and have just destroyed the id and reinitialize it.

I am looking for a solution that will allow all nicedit WYSIWYG areas to render 100% or even a fixed width.

4

1 回答 1

0

我建议您订阅手风琴的change事件,并在这些事件上初始化 WYSIWYG 编辑器,如果它们之前没有被初始化的话。我不熟悉 nicedit 或他们的编辑器是如何构造的,但如果它动态计算大小,那么除非 HTML 容器可见,否则它不能这样做。因此,更改事件将使您使容器可见,以便正确计算大小。

于 2012-09-11T11:12:07.423 回答