Yii Framework Forum: Redactor Upload Image - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Redactor Upload Image Rate Topic: -----

#1 User is offline   fatjedi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 10-December 12

Posted 10 December 2012 - 10:05 PM

Hi,
I would like to know anyone know how to use redactor image upload?Is there any example?
0

#2 User is offline   luc 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 211
  • Joined: 22-June 10
  • Location:france

Posted 11 December 2012 - 03:23 AM

Hi,

look at janisto's ycm module.
He has implemented a nice "universal" (meaning that you can call it for all your models/attribute that are defined as text in your db) way to use redactor with the upload feature.
here is source code.
Hey Ho !
Let's go !
0

#3 User is offline   janisto 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 30-March 11
  • Location:Helsinki, Finland

Posted 12 December 2012 - 01:36 PM

I just committed easy to use actions for Redactor widget.

Check out https://github.com/j...to/yii-redactor

Modify the actions to your own taste.
1

#4 User is offline   luc 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 211
  • Joined: 22-June 10
  • Location:france

Posted 12 December 2012 - 04:27 PM

 janisto, on 12 December 2012 - 01:36 PM, said:

I just committed easy to use actions for Redactor widget.

Check out https://github.com/j...to/yii-redactor

Modify the actions to your own taste.


Looks good.
Thank you
Hey Ho !
Let's go !
0

#5 User is offline   wadim 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 19-March 13

Posted 11 June 2013 - 08:11 AM

I'm trying to upload images using this actions from github (https://github.com/j.../master/actions)

And a uploads folder is created with the image in it, and in the textarea I'm getting this:
>>>{"filelink":"\/uploads\/file\/content\/d4d8f1c6db38315b1b7cff06e62228cb.png"}

Is this how it should work, or am i missing something ?
0

#6 User is offline   janisto 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 30-March 11
  • Location:Helsinki, Finland

Posted 12 June 2013 - 07:37 AM

Are you using file or image upload action?
How did you configure the controller and view?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users