Jump to content

Option to return image httpUrl instead of url as image src when inserting to textarea field


pogidude
 Share

Recommended Posts

I use ckeditor for my textareas. Now, I'd like to ask if it'd be possible to include in core to have it so that when an image is inserted into the textarea, the image src is the absolute uri instead of relative to root.

Basically, in ProcessPageEditImageSelect::executeResize() method, the src of the returned image can be set to $image->httpUrl instead of just $image->url. 

With that in place, we can now ask authors of the ckeditor module to add an option to be able to return absolute uri or use default of root relative uri.

Now, please, no discussions about merits of absolute vs relative urls. I'm for relative urls, but I need absolute urls for this project and I'd prefer not to hack core if I can.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...