sheadawson/silverstripe-responsive-wysiwyg-images 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sheadawson/silverstripe-responsive-wysiwyg-images

Composer 安装命令:

composer require sheadawson/silverstripe-responsive-wysiwyg-images

包简介

Extends silverstripe-responsive-images to allow responsive images in WYSIWYG editor.

README 文档

README

Extends silverstripe-responsive-images to allow responsive images in WYSIWYG editor. When the user selects an image to insert, they are given the option of responsive sizing or standard sizing. If they choose responsive, they can select a Responsive Set to use, these sets are defined in your yml configuration. If they choose standard resizing, they get the normal Width x Height fields.

##Requirements

##Installation

$ composer require sheadawson/silverstripe-responsive-wysiwyg-images dev-master

##Usage

Define your responsive image sets in yml config as you normally would. Sets that you would like to be available in the WYSIWYG image insert form should specify an additional "wysiwyg" property and "description" property to opt-in.

Example:

ResponsiveImageExtension:
  sets:
    ResponsiveSet1:
      wysiwyg: true
      description: "ResponsiveSet1, used for X and Y"
      sizes:
        - {query: "(min-width: 200px)", size: 100}
        - {query: "(min-width: 800px)", size: 400}
        - {query: "(min-width: 1200px)", size: 800}

##Additional Configuration

You can set the image insert form to default to "Standard" image resizing (user sets the width and height) or "Responsive". Default is "Responsive".

ResponsiveImageHtmlEditorField_Toolbar:
  default_resize_method: 'Standard'
`

统计信息

  • 总下载量: 1.61k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 6
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-07-16