yiidoc / yii2-redactor

Extension Redactor WYSIWYG for Yii2 framework
BSD 3-Clause "New" or "Revised" License
187 stars 87 forks source link

uploading images do not work #84

Open kinmokusu opened 6 years ago

kinmokusu commented 6 years ago

i do not know the issue but once i select an image and clic enter the pop up disappear and nothing happens after it


                    'clientOptions' => [
                    'imageManagerJson' => ['../uploads'],
                    'imageUpload' => ['../uploads'],
                    'fileUpload' => ['../uploads'],
                    'lang' => 'fr',
                    'plugins' => ['clips', 'fontcolor', 'imagemanager']
                ]]); ```

and here is the configuration
`

        'redactor' => [
            'class' => 'yii\redactor\RedactorModule',
            'uploadDir' => '@webroot/uploads/',
            'uploadUrl' => '../uploads/',
            'imageAllowExtensions'=>['jpg','png','gif']
        ],`
aelsaidy commented 6 years ago

please update the reactor js file

like that

$img.attr('src', json.files[0].filelink).attr('data-redactor-inserted-image', 'true');

instead of

$img.attr('src', json.filelink).attr('data-redactor-inserted-image', 'true');

line 4090

ahmednawazbutt commented 5 years ago

where am I supposed to write this code??? my images are not getting uploaded. All I am getting is an alert saying TRUE