| Page 1 of 1 | [ 6 posts ] |
|
I have 2 editors within a single tab that is inside a tabview with multiple tabs.
When the tab containing the 2 editors is initially rendered there is no problem. But when I switch tabs and then return to the tab containing the 2 editors the second editor does not appear. This problem only occurs in Firefox it seems. After some investigation I found that the second editor's iframe body tag 'id' attribute disappears. This may be why the second editor does not appear properly. Is there any way to fix this problem? |
Juan Ignacio DopazoYUI Contributor
|
I've run into problems rendering some widgets on hidden nodes in some browsers as well. It's usually a good idea to wait until the node is shown to render the widget. For example, in a tabview you can do:
Code: tab.on('selectedChange', function (e) { if (e.newVal && !editor.get('rendered')) { editor.render(); } }); I hope that helps. |
|
@Juan
This is the proper technique for showing an Editor. Rendering the dynamic, editable iframe into a hidden element freaks it out pretty good |
|
Thanks for the advice.
I tried what you said but I still run into the same problem in Firefox. I created an example here. http://jsfiddle.net/myG6f/4/ |
|
This problem seems to be resolved in Firefox 12.0
Thank you |
Juan Ignacio DopazoYUI Contributor
|
It works OK for me on Firefox 11 as well.
|
| Page 1 of 1 | [ 6 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group