diff --git a/backend/views/product/_form_language.php b/backend/views/product/_form_language.php index 8ef6997..05d717c 100755 --- a/backend/views/product/_form_language.php +++ b/backend/views/product/_form_language.php @@ -1,11 +1,15 @@ field($model_lang, '[' . $language->id . ']title') ->textInput(['maxlength' => true]); echo $attributeField; -$attributeField2 = $form->field($model_lang, '[' . $language->id . ']link') - ->textInput(['maxlength' => true]); -echo $attributeField2; + +echo $form->field($model_lang, '[' . $language->id . ']description') + ->widget( + TinyMce::className(), + [ + 'options' => [ 'rows' => 20 ], + 'language' => 'ru', + 'clientOptions' => [ + 'file_browser_callback' => new JsExpression( + "function(field_name, url, type, win) { +window.open('" . Url::to( + [ + 'imagemanager/manager', + 'view-mode' => 'iframe', + 'select-type' => 'tinymce', + ] + ) . "&tag_name='+field_name,'','width=800,height=540 ,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no'); +}" + ), + 'plugins' => [ + "advlist autolink lists link charmap print preview anchor", + "searchreplace visualblocks code fullscreen", + "insertdatetime media table contextmenu paste image", + ], + 'toolbar' => "undo redo | styleselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code", + 'image_advtab' => true, + ], + ] + ); + ?> \ No newline at end of file -- libgit2 0.21.4