Skip to content

Commit

Permalink
pkp/pkp-lib#9366 Resolve issue with toolbar pkpAttachFiles for tinymc…
Browse files Browse the repository at this point in the history
…e editor in Composer component
  • Loading branch information
blesildaramirez committed Jan 6, 2025
1 parent 8708d2e commit 3a14c83
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/Composer/Composer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@
:all-errors="errors"
:init="bodyInit"
:form-id="id"
plugins="link"
:plugins="['link']"
size="large"
toolbar="bold italic superscript subscript | link"
:toolbar="toolbar"
:value="body"
:prepared-content="compiledVariables"
:insert-label="insertLabel"
Expand Down Expand Up @@ -553,6 +553,7 @@ export default {
searchPhrase: '',
searchResults: [],
showSearchResultCount: 10,
toolbar: 'bold italic superscript subscript | link',
};
},
computed: {
Expand All @@ -577,6 +578,9 @@ export default {
return {};
}
let self = this;
self.toolbar += ' | pkpAttachFiles';
return {
setup: function (editor) {
editor.ui.registry.addButton('pkpAttachFiles', {
Expand All @@ -592,7 +596,6 @@ export default {
});
},
});
editor.settings.toolbar += ' | pkpAttachFiles';
},
};
},
Expand Down

0 comments on commit 3a14c83

Please sign in to comment.