Skip to content

Commit

Permalink
Enable side position for all content elements that support sticky
Browse files Browse the repository at this point in the history
REDMINE-20900
  • Loading branch information
tf committed Jan 8, 2025
1 parent d81fc02 commit 9094dbb
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('counter', {
category: 'data',
pictogram,
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xxs', 'full'],

defaultConfig: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('dataWrapperChart', {
category: 'data',
pictogram,
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ editor.registerSideBarRouting({
editor.contentElementTypes.register('hotspots', {
pictogram,
category: 'interactive',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedWidthRange: ['xxs', 'full'],

editorPath(contentElement) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ editor.contentElementTypes.register('iframeEmbed', {
pictogram,
category: 'interactive',
featureName: 'iframe_embed_content_element',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('imageGallery', {
pictogram,
category: 'media',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry, contentElement}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('infoTable', {
featureName: 'info_table_content_element',
pictogram,
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['s', 'xl'],

configurationEditor({entry, contentElement}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('inlineAudio', {
pictogram,
category: 'media',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xxs', 'full'],

defaultConfig: {playerControlVariant: 'waveformBars'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('inlineBeforeAfter', {
pictogram,
category: 'interactive',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('inlineImage', {
pictogram,
category: 'media',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry, contentElement}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const EditMotifAreaMenuItem = Backbone.Model.extend({
editor.contentElementTypes.register('inlineVideo', {
pictogram,
category: 'media',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import pictogram from './pictogram.svg';

editor.contentElementTypes.register('quote', {
pictogram,
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xs', 'xl'],

defaultConfig: {textSize: 'medium'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import pictogram from './pictogram.svg'
editor.contentElementTypes.register('tikTokEmbed', {
pictogram,
category: 'media',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['md', 'full'],

configurationEditor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import pictogram from './pictogram.svg'
editor.contentElementTypes.register('twitterEmbed', {
pictogram,
category: 'media',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],

configurationEditor() {
this.tab('general', function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('videoEmbed', {
pictogram,
category: 'media',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import pictogram from './pictogram.svg';
editor.contentElementTypes.register('vrImage', {
pictogram,
category: 'interactive',
supportedPositions: ['inline', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedPositions: ['inline', 'side', 'sticky', 'standAlone', 'left', 'right', 'backdrop'],
supportedWidthRange: ['xxs', 'full'],

configurationEditor({entry}) {
Expand Down

0 comments on commit 9094dbb

Please sign in to comment.