简体   繁体   English

如何在magento cms编辑器中插入图像

[英]How to insert image in magento cms editor

i am trying to insert images using editor in magento from the admin panel. 我正在尝试使用管理面板中magento中的编辑器插入图像。 images are uploading without issue but after the upload i am clicking on insert image. 图片上传没有问题,但是上传后我点击插入图片。 but the path is not coming into the popup src url. 但路径未进入弹出src url。 so i am unable to place image into editor. 所以我无法将图像放入编辑器。

anybody help me please. 任何人都可以帮助我。

thanks, murali. 谢谢,穆拉利。

  1. Upload the image like you said 像你说的那样上传图片
  2. Select the proper folder in the left column and click the image in the right column. 在左列中选择适当的文件夹,然后在右列中单击图像。
  3. Press Insert Image in the upper right corner. 按右上角的插入图像。
  4. See code like : <img src="{{media url="wysiwyg/filename.jpg"}}" alt="" /> appear in the text-area 参见以下代码: <img src="{{media url="wysiwyg/filename.jpg"}}" alt="" />出现在文本区域

I think the problem is that you can't add an image like you're supposed to. 我认为问题在于您无法像预期的那样添加图像。 This problem is related to Firefox, at least in my case this is. 这个问题与Firefox有关,至少在我看来是这样。

If you select an image in Chrome or in IE it works. 如果您在Chrome或IE中选择图片,则可以使用。 In Firefox it doesn't. 在Firefox中则不是。

  1. Put your images in http://magento.com/images directory. 将您的图片放在http://magento.com/images目录中。
  2. Click on Show/Hide Editor. 单击显示/隐藏编辑器。
  3. Change/edit the src tag eg src="/images/banner1.jpg" . 更改/编辑src标签,例如src="/images/banner1.jpg"

根据您的描述,一旦在图像管理器中看到上传的图像...,双击该图像,它将使用自定义URL进入编辑器

这是最好的方法:

<img src="{{skin url='images/YOUR-IMAGE.jpg'}}" />

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

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