40shop Posted December 15, 2013 Share Posted December 15, 2013 I've attempted to add a youtube vid into product description (as a test so I know of any drawbacks before planning to use them) and I've stumbled onto a larger problem. I clicked the media button & added the source url. I clicked "save and stay" button (happens with "save" button also). This error displayed: The description field (English (United States)) is invalid. I then checked the code by clicking the "HTML" button and thats when I noticed the code was JACKED UP! It adds slashes and character html like its trying to escape the quotes and... observe below. Here's what the code looks like before saving: <p><iframe src="http://www.youtube.com/embed/LSGLBxlBqJQ?rel=0" width="720" height="440"></iframe></p> then after saving, it becomes this: <p><iframe src="\"http://www.youtube.com/embed/LSGLBxlBqJQ?rel=0\"" width="\"720\"" height="\"440\""></iframe></p> In the media UI it previews the video, so I know it works, but whatever validation is going on is BORKing the code. Even simple hyperlinks get mangled. My pre-existing CMS pages and products are ok, but if I edit anything, I'm in trouble. It will be a problem for linking between products & CMS pages. Anyone have a clue what's going on? I'm thinking it can be a simple (temporary) fix or maybe something didnt go right in the update. Any help is appreciated. Link to comment Share on other sites More sharing options...
vekia Posted December 15, 2013 Share Posted December 15, 2013 go to preferences > general turn on "allow iframes on html fields" option 1 Link to comment Share on other sites More sharing options...
40shop Posted December 15, 2013 Author Share Posted December 15, 2013 Thanks Vekia That solved the problem. The problem also affected things that had nothing to do with IFRAMEs, but thats all cleared up now. Cheerz Link to comment Share on other sites More sharing options...
vekia Posted December 16, 2013 Share Posted December 16, 2013 you're welcome glad to hear that i could help you a little i marked whole topic as [solved] with regards, milos Link to comment Share on other sites More sharing options...
Recommended Posts