I had a client ask for that and it took a little while to get it but its simple:
function change_mce_path_options( $init ) {
$init['relative_urls'] = true;
$init['document_base_url'] = get_bloginfo('url');
return $init;
}
add_filter('tiny_mce_before_init', 'change_mce_path_options');
Related Posts:
- How to give image source in wordpress page editor?
- Upload multiple images in a custom metabox
- Caption in Page adding unwanted 10px to width
- Woocommerce featured image of page – not product
- Pull Random Attachments With Pagination
- Is there a way to add a featured image to an image/file attachment page?
- Gallery Images could not be shown
- Editing Featured Image Display When Creating Post
- how to display all images from their siblings/ from same parent?
- Featured Image not changing
- show hide image script after 4 seconds [closed]
- How do I disable responsive images in WP 4.4?
- Set default image sizes in WordPress to hard crop
- After Moving a Site to Another Domain, All Images Are Lost
- Featured image shortcode
- How to find attachment by it’s name?
- Change html structure of all img tags in WordPress
- Change the output for [gallery] shortcode
- Downsizing Many Large Images Attached to Posts, in Bulk?
- Apply image width to tag
- Disabling auto-resizing of uploaded images
- How do I delete thousands of unattached images?
- Wrong domain in uploads folder
- How can i alter the amount of different images sizes being stored?
- How to force WordPress to add new images at the beginning of the gallery?
- Why would image paths in wordpress suddenly change?
- Re-process Images
- How to install Imagick or resolve issue
- Passing srcset to image attachment method
- Why is wordpress searching for @2x images?
- Responsive Images Resizing Images
- Broken urls with http site and https wp-admin
- Image File Names
- Images in upload folder with hexadecimal names
- JavaScript and images files are not recognized
- How to extract image width from add_image_size?
- Link to full size image or attachment page in photo theme
- How can I make all post image uploads have data-width and data-height attributes automatically by default?
- How to remove Geo Tagging on image uploads, but not other EXIF data?
- How to output images as figure/figcaption
- Make Images appear in the same order as in media browser using get children?
- wordpress get gallery images title
- How to wrap normal image tag with figure HTML5 element
- Update old Post image metadata to ‘thumbnail’ wp_attached_file
- How to find images in lazyload to set alt attribute?
- having issue while uploading An error occured in the upload. Please try again later
- How to change image atributes right before an image to be saved?
- Control Responsive Images
- How to add an image to the post preview in the free theme “food recipes”
- I am getting useless alphabets in images link
- How to replace images?
- The alt=”” attribute is empty
- Add custom text in the media library image meta area
- how to move from content and place them elsewhere on a page template?
- Where is the right place to store custom images?
- Image editor is not loading
- Images give 404 after changing default domain
- Load Gallery Images with Title on Homepage BX Slider
- Resize images in batch
- How can I check if the first block is an image aligned left or right?
- How would you add sequentially numbered labels to images in posts?
- Advice on image heavy site, compression and slow page loads
- Blurry images when using add_image_size with crop
- Auto delete pictures in media library by age
- Can wp_get_image_editor convert to icon?
- How to get image URL from media_sideload_image?
- Can’t get text to wrap around image
- Allow SVG in WP step by step
- Serve different images per screen size and cache possible?
- Product Images Low Quality After Updating From WP 3.5 to 4 [closed]
- Auto-crop width, not height
- Convert featured images into “product images”
- Having an issue in compressing Images in wordpress site
- Word press cutting sliding images – not displaying the entire image
- How to re-arrange images in default WP Gallery more than one image at once?
- Image links broken / “DNS Update Required” message
- Convert multiple image blocks to gallery block in Gutenberg?
- WordPress After migration some images src is empty
- Image sizes reset when changing theme
- How to get featured image of last post in a category?
- How can I add “alt” tag to element?
- After moving a site to new hosting, not all images are showing in media library
- How to inject alt and title attributes for every image in each post into HTML?
- Custom Background for each page and post
- How can the alt be added to this wooCommerce category image?
- Displaying “alt” attribute text as captions?
- How to make Facebook share the featuterd image from url on WordPress
- Delete images of a particular size
- Images not rendering
- Add category description to list of category with taxonomy image
- Images in sub-pages fail to load
- How do add custom class and id to the that is generated from media gallery insert image into post [duplicate]
- How do I get the URL of only the first picture in a WordPress post?
- Images getting corrupt automatically
- Thumbnail size keeps resetting automatically
- WordPress Theme: replace logo image with title site if file doesn´t exist on server
- WordPress update leads to 404 error on admin page and signup. CSS mishap with all plugin related functions
- How to get dimension of Logo and Crest
- WordPress Missing Images
- Display first image’s caption