TINY BLOG > Important changes to Tiny Cloud pricing > Find out more
Return to Tiny.cloud

theme_advanced_custom_layout

Contribute to this page

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 theme is set to advanced and when the theme_advanced_layout_manager option is set to the value of "CustomLayout".

Example of usage of the theme_advanced_custom_layout option:

function myCustomLayout(template) {
    // Make custom layout
    template['html'] = "make new layout";

    return template;
}

tinyMCE.init({
    ...
    theme_advanced_custom_layout : "myCustomLayout"
});

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.