Skip to content

Commit

Permalink
#326 Extend options
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-adriaens committed Oct 7, 2024
1 parent 2db12ed commit 0f3dbbc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/dumb/OeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
<select v-if="toolbar.align" class="ql-align"></select>
</div>

<div class="toolbar-group">
<button class="ql-link"></button>
<button class="ql-image"></button>
<button class="ql-video"></button>
<button class="ql-formula"></button>
<div v-if="toolbar.link || toolbar.image || toolbar.video || toolbar.formula" class="toolbar-group">
<button v-if="toolbar.link" class="ql-link"></button>
<button v-if="toolbar.image" class="ql-image"></button>
<button v-if="toolbar.video" class="ql-video"></button>
<button v-if="toolbar.formula" class="ql-formula"></button>
</div>

<div v-if="toolbar.removeformat" class="toolbar-group">
Expand Down
4 changes: 4 additions & 0 deletions src/models/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ export interface OeEditorToolbarConfig {
biblio?: boolean;
code?: boolean;
fullscreen?: boolean;
link?: boolean;
image?: boolean;
video?: boolean;
formula?: boolean;
}
4 changes: 4 additions & 0 deletions src/stories/dumb-components/editor.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ export const FulloptionToolbar: Story = {
header: true,
removeformat: true,
biblio: true,
formula: true,
image: true,
link: true,
video: true,
});
return { model, toolbar };
},
Expand Down

0 comments on commit 0f3dbbc

Please sign in to comment.