diff --git a/src/components/plugin/SectionTextarea.vue b/src/components/plugin/SectionTextarea.vue index 9ded033..2ea592b 100644 --- a/src/components/plugin/SectionTextarea.vue +++ b/src/components/plugin/SectionTextarea.vue @@ -59,9 +59,14 @@ export default { text: '', name: 'core_section_textarea', vtinymce: Object.assign(tinymceConfig, { - file_picker_callback: (callback, value, meta) => { - if (this.$filemanager) { - this.$filemanager.fileChooser(callback, value, meta) + file_picker_callback: (callback) => { + if (this.$filechooser) { + this.$filechooser.open({ + chooseCallback: function (ev) { + console.log('filePathChosed', ev) + callback(ev.publicUrl); + } + }) } } }),