I will try to explain a strange behavior (maybe bug) when using WYSIWYG editor in Magento 1.9.
Magento setup
One website with three store views. Each store view is on different domains. For this case let’s focus only on two storeviews:
storeview 1: mywebshop.eu storeview 2: mywebshop.it
Steps for reproducing the error.
SCENARIO 1 which is OK.
Open desired product, and open WYSIWYG for description field. Select storeview 1 (english)
Add an image (using the editor’s button Insert/Edit image).
The Html code I get is ok like this:
img src="{{media url="wysiwyg/adobe-pdf-icon-02.png"}}" /
The image is corectly displayed in frontend like this:
SCENARIO 2 which is not OK.
RE-Open the same desired product and open WYSIWYG for description field. (Now select store view 2 (Italian)
Add an image (using the editor’s button Insert/Edit image).
Now the code I get is like this:
img src="{{media url="https://mywebshop.it/media/wysiwyg/adobe-pdf-icon-02.png"}}" /
The image in frontend is broken, because the HTML output is like this:
RESULT: the image is not displayed because of malformed img src.
We have recently setup Magento that each store view has a different domain. (Maybe this affects).
I saw very similar question here --> Wrong URL returned by WYSIWYG editor for images
But this answer doesn't help/work (Wrong URL returned by WYSIWYG editor for images)
Please help.