Skip to content

Commit

Permalink
[project-base][SSP-2537] forbidden grapesjs image resize (#3351)
Browse files Browse the repository at this point in the history
  • Loading branch information
chlebektomas authored Aug 21, 2024
2 parents 25ccb81 + a9ce2be commit 4aeaa6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default grapesjs.plugins.add('custom-image', (editor) => {
},

defaults: {
resizable: false,
attributes: {
[imagePositionDataAttribute]: 'left',
class: ['image-position-left']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default grapesjs.plugins.add('text-with-image', editor => {
draggable: false,
copyable: false,
droppable: false,
resizable: false,
propagate: ['removable', 'draggable', 'copyable', 'droppable'],
attributes: {
[IMAGE_POSITION_DATA_ATTRIBUTE]: IMAGE_POSITION_LEFT,
Expand Down

0 comments on commit 4aeaa6d

Please sign in to comment.