Skip to content

Commit 3773899

Browse files
committed
feat: enable attachment plugin when configured
1 parent e5b9b3c commit 3773899

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

resources/assets/components/Textarea.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ export default
5858
},
5959
settings()
6060
{
61-
return Object.assign({}, this.config, this.init, { paste_preprocess: this.pastePreprocess })
61+
const settings = Object.assign({}, this.config, this.init, { paste_preprocess: this.pastePreprocess })
62+
if (settings.attachment_settings) {
63+
settings.plugins = 'attachment ' + (settings.plugins || '')
64+
settings.toolbar = 'attachment | ' + (settings.toolbar || '')
65+
}
66+
return settings
6267
}
6368
},
6469
methods:

0 commit comments

Comments
 (0)