Skip to content

Commit 316abb7

Browse files
Remove not required attributes
1 parent 70be384 commit 316abb7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • decidim-core/app/packs/src/decidim/editor/extensions/image

decidim-core/app/packs/src/decidim/editor/extensions/image/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default Image.extend({
9898

9999
this.editor.commands.toggleDialog(true);
100100
const dialogState = await uploadDialog.toggle(
101-
{ src, alt, href, target },
101+
{ src, alt },
102102
{
103103
inputLabel: i18n.altLabel,
104104
uploadHandler: async (file) => uploadImage(file, this.options.uploadImagesPath)
@@ -118,8 +118,6 @@ export default Image.extend({
118118

119119
src = uploadDialog.getValue("src");
120120
alt = uploadDialog.getValue("alt");
121-
href = uploadDialog.getValue("href");
122-
target = uploadDialog.getValue("target");
123121
return this.editor.chain().setImage({ src, alt, width, href, target }).focus(null, { scrollIntoView: false }).run();
124122
}
125123

0 commit comments

Comments
 (0)