T
T
The Dragger2015-02-12 18:40:45
JavaScript
The Dragger, 2015-02-12 18:40:45

How to get image url from imperavi-redactor-widget in yii?

Hello, when loading a picture, imperavi-redactor-widget fills it completely with img tags
, I need to put only the url of the picture in the href attribute, how to implement this? ?
1
2 <?php echo $mod->img_url?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vyachin, 2015-06-04
@vyachin

We read here imperavi.com/redactor/docs/upload-images at least examples.
It turns out that you tell the editor where to send it, and the editor expects that he will receive a response in json format, where the filelink parameter will contain the url from where he can upload the image.
We read here imperavi.com/redactor/docs/callbacks/upload here it is described how to put a hook for uploading an image. This way you can catch the filelink and do all sorts of bad things with it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question