<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Option: theme_advanced_custom_layout</title> <link href="css/screen.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="header"> <h1>Option: theme_advanced_custom_layout</h1> </div> <div class="content"> <p> This option is used to specify a custom layout manager function. The format of this function is: customLayout(template) where template is the template array within the advanced theme, this function should return a new template array containing the editor HTML in a key called html. This option can only be used when <a href="option_theme.html">theme</a> is set to advanced and when the <a href="option_theme_advanced_layout_manager.html">theme_advanced_layout_manager</a> option is set to the value of "RowLayout". CustomLayout template </p> <div class="separator"></div> <h3>Example of usage of the theme_advanced_custom_layout option:</h3> <div class="example"> <pre> function <strong>myCustomLayout</strong>(template) { // Make custom layout template['html'] = "make new layout"; return template; } tinyMCE.init({ ... <strong>theme_advanced_custom_layout : "myCustomLayout"</strong> }); </pre> </div> </div> <div class="footer"> <div class="helpindexlink"><a href="index.html">Index</a></div> <div class="copyright">Copyright © 2003-2006 <a href="http://www.moxiecode.com">Moxiecode Systems AB</a></div> <br style="clear: both" /> </div> </body> </html>