galetahub / ckeditor

Ckeditor 4.x integration gem for rails
https://ckeditor.com/ckeditor-4/
MIT License
2.23k stars 878 forks source link

Simpler image chooser option #861

Closed Tectract closed 5 years ago

Tectract commented 5 years ago

Hi,

I'd like the option to have a form with an "image chooser" option, where there is an image (or blank placeholder) displayed. Then when the user clicks on the image, the CKEDITOR image chooser/uploader thing comes up allowing them to either choose an image from the server or upload a new one. What I need to save is ONLY the local URL path to the image, no HTML blurb...

Any way I can do this with the current tools, or easily make this happen?

Tectract commented 5 years ago

I guess what I'm trying to do is trigger the "browse server" (for image) utility function all by itself and just have it return the image URL for me, in a clean way.

Any way to just call down into the utils to get this "browse server" image chooser thing?

Tectract commented 5 years ago

I see now that I am requesting a feature that has been request twice before:

https://github.com/galetahub/ckeditor/issues/817

https://github.com/galetahub/ckeditor/issues/271

Any chance we can get this feature bumped up on the priority list, or like, any help figuring out how to make it work?

Tectract commented 5 years ago

I'm building this out, will push back some code as possible...

Tectract commented 5 years ago

Ahhhhh, I got it working. It's so nice, lol.