Skip to content

Commit

Permalink
fix(pat tinymce): remove picture-variants defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Nov 16, 2022
1 parent 35d9133 commit 47a9d6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,4 +569,4 @@ This can be provided by an external bundle.

* Remove Mockup's ``pat-eventedit``, which was unused. Instead use Patternslib' ``pat-date-picker``, ``pat-depends`` and ``pat-validation``.

* Restructure searchbox markup for mobile navigation as offcanvas sidebar.
* Restructure searchbox markup for mobile navigation as offcanvas sidebar.
50 changes: 0 additions & 50 deletions src/pat/tinymce/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,56 +69,6 @@ export default Base.extend({
// defaultScale: "large",
defaultSrcset: "medium",
imageCaptioningEnabled: true,
pictureVariants: {
large: {
"title": "Large",
"preview": "++theme++barceloneta/static/preview-image-large.png",
"use-in-editor": true,
"sourceset": [
{
scale: "teaser",
media: "(min-width:768px) and (orientation:portrait)",
},
{
scale: "large",
media: "(min-width:768px)",
},
{
scale: "larger",
media: "(min-width:992px)",
},
{
scale: "great",
media: "(min-width:1200px)",
},
{
scale: "huge",
media: "(min-width:1400px)",
},
{
scale: "huge",
},
],
},
medium: {
title: "Medium",
preview: "++theme++barceloneta/static/preview-image-medium.png",
sourceset: [
{
scale: "larger",
},
],
},
small: {
title: "Small",
preview: "++theme++barceloneta/static/preview-image-small.png",
sourceset: [
{
scale: "preview",
},
],
},
},
imageClasses: {
"image-inline": _t("Inline"),
"image-right": _t("Right"),
Expand Down

0 comments on commit 47a9d6a

Please sign in to comment.