
#Yii redactor update#
In this library, you just have to update file i.e. If ($uploadedFile->saveAs(Yii::app()->basePath. php composer.
#Yii redactor install#
$fileName = "" // random number + file name The preferred way to install this extension is through composer. Here is an example to modify the class of redactor in the main.php file to point here and modify it to 'class' > 'backend\components\RedactorModule' to open backend\components\RedactorModule.php and modify the getOwnerPath method. I've tried to edit their css but it didn't work. Copy a yii\redactor\RedactorModule.php file to the backend\components\ directory, you can set the directory yourself. Yii Framework Forum PHP7.2 Fail to instantiate yii\redactor\RedactorModule' Yii 2.0 Installation and Setup steward (Steward) March 10, 2019, 7:12pm 1 I think this started after upgrading to php 7.2 I have no clue where to start looking. $rnd = rand() // generate random number between 0-9999 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. Yii 1.1.10 or above (Redactor requires jQuery 1.7. 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. $uploadedFile = CUploadedFile::getInstanceByName('file') Yii 1.1.10 or above (Redactor requires jQuery 1.7.1) Installation Download yii-redactor or Clone the files Extract into the widgets or extensions folder Download Redactor and language files if needed Extract Redactor files redactor.css -> redactor/assets/css/ redactor. Yii-RedactorJS-Widget Using with a model Using with a model and a mini toolbar and different language Using with a model and custom toolbar options Using with a name and value Yii Widget for the WYSIWYG RedactorJS editor Project Page Examples Documentation Yii Widget Github Project Page Requirements JQuery > 1.7. 'imageGetJson' => Yii::app()->createAbsoluteUrl('admin/event/listImages')))) ?>


RedactorRow($model,'descr', array('options' => array('imageUpload' => Yii::app()->createAbsoluteUrl('admin/event/imageUpload'),
#Yii redactor code#
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). I’m trying to implement file uploads using the redactor editor bundled with Yii-booster.
