选项:theme_advanced_custom_layout

这个选项用来指定自定义的布局管理函数。函数格式是:customLayout(template) ,其中 template 是高级主题中的模板数组。函数返回一个新的模板数组,键为 html,值为编辑器的HTML代码。只有当 theme 设为 advanced 并且 theme_advanced_layout_manager 选项值为"RowLayout"时才有用。

theme_advanced_custom_layout 选项的使用示例:

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

	return template;
}

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