Создаю два поля tinyMce
echo $form->field($model, "text")->label('Описание')
->widget(TinyMce::className(), [
'options' => ['rows' => 10,'value' => ''],
'clientOptions' => [
'plugins' => [
"advlist autolink lists link charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste",
"image imagetools spellchecker visualchars textcolor",
"autosave colorpicker hr nonbreaking responsivefilemanager filemanager"
],
'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
'external_filemanager_path' => '/plugins/responsivefilemanager/filemanager/',
'filemanager_title' => 'Open Filemanager',
'external_plugins' => [
'filemanager' => "/plugins/responsivefilemanager/filemanager/plugin.min.js",
"responsivefilemanager" => "/plugins/responsivefilemanager/filemanager/plugin.min.js"
],
'relative_urls' => false,
]
]);
echo $form->field($model, "mission")->label('Миссия компании')
->widget(TinyMce::className(), [
'options' => ['rows' => 10,'value' => ''],
'clientOptions' => [
'plugins' => [
"advlist autolink lists link charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste",
"image imagetools spellchecker visualchars textcolor",
"autosave colorpicker hr nonbreaking responsivefilemanager filemanager"
],
'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
'external_filemanager_path' => '/plugins/responsivefilemanager/filemanager/',
'filemanager_title' => 'Responsive Filemanager',
'external_plugins' => [
'filemanager' => "/plugins/responsivefilemanager/filemanager/plugin.min.js",
"responsivefilemanager" => "/plugins/responsivefilemanager/filemanager/plugin.min.js"
],
'relative_urls' => false,
]
]);
Так вот загрузка изображения только в одном, в последнем возможна. Причем все ID разные, иницилизация вставляется на разные ID. Не работает( Помогите плиз..