2017 © Pedro Peláez
 

silverstripe-module silverstripe-responsive-wysiwyg-images

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

image

sheadawson/silverstripe-responsive-wysiwyg-images

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

  • Wednesday, February 24, 2016
  • by sheadawson
  • Repository
  • 2 Watchers
  • 11 Stars
  • 1,516 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

silverstripe-responsive-wysiwyg-images

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., (*1)

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., (*2)

Example:, (*3)

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' `, (*4)

The Versions

24/02 2016

dev-master

9999999-dev https://github.com/sheadawson/silverstripe-responsive-wysiwyg-images

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

  Sources   Download

The Requires

 

by Shea Dawson

responsive silverstripe images