Skip to content

Commit

Permalink
Fix bug that can lead to error due to wrong data-filepath generation …
Browse files Browse the repository at this point in the history
…when changing image in media mode
  • Loading branch information
PubliAlex committed Dec 4, 2024
1 parent 43f3a76 commit 2309e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tinymce/scripts.htm
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
// When image dialog is saved
case 'mceUpdateImage':
let target = editor.selection.getNode();
let src = target.getAttribute('src');
let src = target.getAttribute('src').replace('../', '');
let path = folder.substring(1);

// Set width, height and aspect ratio to respect ones defined in the component
Expand Down
4 changes: 3 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ v2.0.3:
v2.0.4:
- Fix small bug related to styles management improvements
v2.0.5:
- Fix bug where attributes are not prefixed with data- for anonymous users
- Fix bug where attributes are not prefixed with data- for anonymous users
v2.0.6:
- Fix bug that can lead to error due to wrong data-filepath generation when changing image in media mode

0 comments on commit 2309e47

Please sign in to comment.