![]() If ($uploadedFile->saveAs(Yii::app()->basePath. $fileName = "" // random number file name $rnd = rand() // generate random number between 0-9999 ![]() ![]() $uploadedFile = CUploadedFile::getInstanceByName('file') Either run php composer. I've tried to edit their css but it didn't work. I can make a change according to my needs. I'm using Yii2 Redactor box, extension from: I want to change size of the textarea but I don't know how, it not mention in their document. I think Yii purchased an OEM license, so I can download it for free if I am using it for Yii, right How do I download it for free Yii extension for Redactor. yii2-redactor Modifying for own use, Do not use this in your project. yii\imperavi\ Widget :: widget ( 'options' > 'lang' > 'ru', , 'plugins' > 'fullscreen', 'clips' ) Installation The preferred way to install this extension is through composer. The Yii extension for Redactor directs me to the Redactor website to download the code, but I am presented with a 'Buy Redactor' page. 'imageGetJson' => Yii::app()->createAbsoluteUrl('admin/event/listImages')))) ?> The redactor plugins plugged in with packages of resources. RedactorRow($model,'descr', array('options' => array('imageUpload' => Yii::app()->createAbsoluteUrl('admin/event/imageUpload'), If you click cancel on the upload window then re-open it, the file I uploaded shows up in the list of files on the server and can be inserted.ĮDIT: Got it working, here’s the controller code for those interested. The image uploads work, but after you select the file to upload the file is transferred and stored but does not show in the window to insert it into the editor area. It’s a current version of redactor (Dec 2012 I believe). Widget('’m trying to implement file uploads using the redactor editor bundled with Yii-booster. You can install yii2-editors via composer package manager. Yii 1.1 Extensions Ghostnsk(Mail) September 5, 2018, 4:48pm 1 hello, some days ago Russian Yii comminuty decided to start gathering of money (total sum - 400) for buying license for beautiful WYSIWYG redactor (created by Imperavi Team Developers). TextFieldRow($model,'headline',array('class'=>'span5','maxlength'=>255,'labelOptions' => array('label' => false), 'placeholder' => 'Overskrift')) ?> The yii2-editors extension can be installed automatically or manually using one of these options: Composer Package Manager Recommended Installation via Composer is the recommended and most easy option to install Krajee Yii2 extensions. The problem is that when I add code with using the code interface, all DIV tags are converted automatically to P tags. 'content' => $this->renderPartial('_form', array('model'=>$model), true) // $this->renderPartial('_view')īeginWidget('',array( 1 I installed a blog module that allows me to add blogs to my Yii2 app. Yii 1.1.10 or above (Redactor requires jQuery 1.7. ![]() Secondly, when i just define ‘attribute’ => ‘text’ (that is the attribute for the entry in the table im using redactor for) it loads allright, but when i try to upload the image, it thinks for a short while, but no image is uploaded. Redactor X Suitable for creating and editing common texts for the web, which may also include images, video, embed code. I have a few questions regarding it, first off: What is the ‘attribute’=>$attribute supposed to be? I just dont understand what string it would need there. Anyone got the imageUpload from the Yii-Redactor-extension to work? Hi everybody I was looking into yiibooster redactor editor First thing i noticed is that in the yiibooster site if you click on the redactor textarea an air toolbar popups, with a huge set of buttons and functionalities that i didn’t found in the original redactor version, in particular i’m in need of the import from word functionality I tried to check the yiibooster site code.
0 Comments
Leave a Reply. |