Hi Guys
Tried to find an answer to this one with no luck, so maybe someone can help me out here.
I've implemented my CKeditor onto my site, but run into a small problem.
Every time i add an image (URL not uploaded) or a link, using exact links or file paths, CKeditor seems to break them and strips the URL from the code.
For example - i added this link via the editor - http://farm6.staticflickr.com/5468/7383 ... f3d5_o.jpg
Once i save it the url in the code is stripped leaving this:
<a href="\">http://farm6.staticflickr.com/5468/7383153112_c7f734f3d5_o.jpg</a>
Whenever i add an image via the editor, as soon as i save the article it breaks the image, and leaves this code behind:
<img alt="\&quot;\&quot;" data-cke-saved-src="\" src="\&quot;http://freeimagesarchive.com/data/media/8/5_images.jpg\&quot;" style="\&quot;width:" 554px;="" height:="" 422px;="" \"="">
Link to the article with the broken image: http://www.wasabiface.com/test/cms/?act ... rticleId=4
So i've probably done something wrong or not set a configuration that's required, but going out of my mind as i cannot seem to find out what i need to change to have these output correctly.
Just need a pointer on what i need to do to make sure that this doesn't occur so i can add images and links into my articles via the editor.
Cheers in advance - Wasabiface
Tue, 06/19/2012 - 13:30
#1
Re: Images break and URL's stripped
Maybe this post can help you solve your problem: viewtopic.php?t=17365
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: Images break and URL's stripped
Thanks Seb - the stripslashes () function worked a treat.
Just for others if they have the same issue and coming to look for a resolution, i had 2 files:
editArticle.php
Just added the stripslashes around the $results variable for the content area.