2017 © Pedro PelĆ”ez
 

silverstripe-vendormodule htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HTMLEditorField

image

bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HTMLEditorField

  • Friday, December 8, 2017
  • by kinglozzer
  • Repository
  • 3 Watchers
  • 7 Stars
  • 828 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 11 % Grown

The README.md

HtmlEditorSrcset

Simple srcset integration with SilverStripeā€™s HTMLEditorField., (*1)

What it does

Adds a srcset attribute for the provided pixel densities to every image inserted through TinyMCE. Resulting in an image tag like:, (*2)

<img width="100" height="50" src="assets/530dffc7f9/image__ResizedImageWzE5OCwxMzJd.jpg"
    srcset="assets/530dffc7f9/image__ResizedImageWzE5OCwxMzJd.jpg 1x, assets/530dffc7f9/image__ResizedImageWzM5NiwyNjRd.jpg 2x"
/>

What it doesnā€™t do

This module doesnā€™t add a sizes attribute, nor does it specify widths in srcset - only pixel densities., (*3)

Specifying your own pixel densities

The module will add sources for 1x and 2x pixel densities by default. You can set your own pixel densities by setting the following in your config.yml:, (*4)

Bigfork\HTMLEditorSrcset\ImageShortcodeHandler:
  pixel_densities: [1, 2, 3]

The Versions

08/12 2017

dev-master

9999999-dev https://github.com/bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HTMLEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

responsive silverstripe images retina htmleditorfield htmleditor srcset

08/12 2017

2.0.2

2.0.2.0 https://github.com/bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HTMLEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

responsive silverstripe images retina htmleditorfield htmleditor srcset

04/12 2017

2.0.1

2.0.1.0 https://github.com/bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HTMLEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

responsive silverstripe images retina htmleditorfield htmleditor srcset

22/05 2017

2.0.0

2.0.0.0 https://github.com/bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HTMLEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

responsive silverstripe images retina htmleditorfield htmleditor srcset

25/05 2016

1.0.1

1.0.1.0 https://github.com/bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HtmlEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

responsive silverstripe images retina htmleditorfield htmleditor srcset

25/05 2016

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HtmlEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

responsive silverstripe images retina htmleditorfield htmleditor srcset

13/04 2016

1.0.0

1.0.0.0 https://github.com/bigfork/htmleditorsrcset

Simple srcset integration with SilverStripeā€™s HtmlEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

responsive silverstripe images retina htmleditorfield htmleditor srcset