yiidoc / yii2-redactor

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

adding ability to use alias in uploadUrl #17

Closed msalahat closed 9 years ago

msalahat commented 9 years ago

uploadURL configuration should be checked for having "Alias" and resolve it if found, and this what I did

giannisdag commented 9 years ago

This is what I was talking about in issue https://github.com/yiidoc/yii2-redactor/issues/16. I was about to create a pull request, thanks msalahat

mklemarczyk commented 9 years ago

It is good idea, otherwise you can run getAlias on init stage.

zinzinday commented 9 years ago

Thanks for your pull. i have refactor module using yii2 features available for Redactor 10.1.1. I did in brief your idea. https://github.com/yiidoc/yii2-redactor/blob/master/RedactorModule.php#L47 https://github.com/yiidoc/yii2-redactor/blob/master/RedactorModule.php#L72