【问题标题】:Refinerycms get image from the editor and resize it within viewRefinerycms 从编辑器获取图像并在视图中调整其大小
【发布时间】:2012-08-04 04:41:58
【问题描述】:

首先感谢您抽出宝贵时间研究此问题。

我是炼油厂的新手,在调整视图中的图像大小时遇到​​问题,我为图像添加了一个新的页面部分并从中获取图像。我只能使用

从 cms 编辑器直接获取图像标签

" %w(img)) %>"

但不知道如何在视图中调整它的大小。

【问题讨论】:

    标签: ruby-on-rails ruby image image-resizing refinerycms


    【解决方案1】:

    我自己想通了,这是你的做法,

    <%= sanitize(content_fu(@page.content_for(:page_image), '96x96#c'), :tags => %w(img)) %>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-10
      • 1970-01-01
      • 2014-01-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多