wp editor change img src
-
Have a problem with wp.editor used in Theme by users
in a custom_post page i have a popup window with wp.editor in it to edit content for custom postsIt’s looks like this
https://tourist.club/wp-content/uploads/2019/06/57.jpg
when I’m adding an image throw wp.media, it is inserting with absolute URL like this
https://tourist.club/wp-content/uploads/2019/06/58.jpg
But when I’m getting content throw wp.editor.getContent(id) or change view from html to WYSIWYG and versa. It’s changing
src to relative, like this
https://tourist.club/wp-content/uploads/2019/06/59.jpg
offcourse after this, in the post this url don’t work, cause it’s try to load image from
site.com/current_page/wp-content/uploads…
when image is in
site.com/wp-content/uploads…I can make dirty fix buy changing relative url to absolute while saving the post data, but seems this problem should have more easy way to resolve buy changing some wp.editor settings or something like this…
- The topic ‘wp editor change img src’ is closed to new replies.