Таким образом, чтобы иметь два экземпляра разного размера, вы можете просто инициализировать их отдельно и задать другую ширину:
$('#textarea1').tinymce({
// Location of TinyMCE script
script_url: '/Resources/Scripts/tiny_mce/tiny_mce.js',
// General options
theme: "advanced",
plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
// Theme options
theme_advanced_buttons1: "cut,copy,paste,|,undo,redo,|,bold,italic,underline,forecolor,fontsizeselect",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
theme_advanced_buttons4: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "none",
theme_advanced_resizing: false,
height: 500,
width: 700,
// Example content CSS (should be your site CSS)
content_css: "css/content.css"
});
$('#textarea2').tinymce({
// Location of TinyMCE script
script_url: '/Resources/Scripts/tiny_mce/tiny_mce.js',
// General options
theme: "advanced",
plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
// Theme options
theme_advanced_buttons1: "cut,copy,paste,|,undo,redo,|,bold,italic,underline,forecolor,fontsizeselect",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
theme_advanced_buttons4: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "none",
theme_advanced_resizing: false,
height: 500,
width: 500,
// Example content CSS (should be your site CSS)
content_css: "css/content.css"
});
Это то, что я использую, и вы можете увидеть в нижней части раздела «Опции темы» у меня есть объявление ширины.