简体   繁体   English

CKEditor仅在编辑器中正确插入图像,但提交后未在网页上显示图像

[英]CKEditor correctly inserting images only in Editor, But not displaying images on Web Page after submit

CKEditor correctly inserting images only in Editor, But not displaying images on Web Page after submit. CKEditor仅在编辑器中正确插入图像,但提交后未在Web页上显示图像。 for example I have image for paypal in CKEditor. 例如,我在CKEditor中有用于贝宝的图像。 But after submit it shows this: 但是提交后显示如下:

" http://example.com/%22https://www.paypalobjects.com/en_US/i/scr/pixel.gif/%22 http://example.com/%22https://www.paypalobjects.com/en_US/i/scr/pixel.gif/%22

This will happen when the link is relative to the CMS ie ../Image/MyImage.jpg but when it goes on the front end of the website, it can't find the file. 当链接是相对于CMS的,即../Image/MyImage.jpg ,但当它出现在网站的前端时,它将找不到文件,就会发生这种情况。

If you have your Image mapped like /Image/MyImage.jpg (notice the removal of .. ) it will navigate from the root directory. 如果您的图像映射为/Image/MyImage.jpg (注意删除.. ),它将从根目录导航。

只需在控制台的前端中查找错误,然后尝试查看图像错误的路径,然后弄清楚您保存图像的路径是什么,以及从网页的前端结束的pata是什么浏览器正在寻找图像路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM