| Page 1 of 1 | [ 2 posts ] |
|
Hi,
I'm trying to put the toolbar inside another div located elsewhere (away from the text area) on the page. I have tried this: Code: <div id="myToolBarCont"></div> <script type="text/javascript"> var Dom = YAHOO.util.Dom PS_editor = new YAHOO.widget.Editor('msgpost', { height: '300px', width: '522px' }); PS_editor.on("afterRender",function(){ Dom.get('myToolBarCont').appendChild(this.get('toolbar_cont')); },PS_editor,true); PS_editor.render(); </script> However, I see no toolbar icons once the code is rendered. By looking at the html source, I see that the toolbar markup does get placed inside the div, but there is no css applied, it seems. So all that's there is an unformatted text representation of the toolbar. What am I missing here? Any help would be appreciated. Thank you. Pat |
|
Ok, I solved it.
I mistakenly had the yui-skin-sam class applied the div that my editor resided in, rather than the body tag. Frustrating oversight. |
| Page 1 of 1 | [ 2 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