Skip to content

Commit

Permalink
pkp/pkp-lib#9421 Add pkp-allowed-html directive to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jan 31, 2024
1 parent 70891cf commit 13a15d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import Tab from '@/components/Tabs/Tab.vue';
import Tabs from '@/components/Tabs/Tabs.vue';
import FloatingVue from 'floating-vue';

// Directives
import {allowedHtmlDirective} from '@/directive/allowedHtml.js';

import PkpDialog from '@/components/Modal/Dialog.vue';

import VueScrollTo from 'vue-scrollto';
Expand Down Expand Up @@ -51,6 +54,10 @@ initialize({

setup((app) => {
app.use(pinia);

// directives
vueApp.directive('pkp-allowed-html', allowedHtmlDirective);

app.mixin(GlobalMixins);

app.use(FloatingVue, {
Expand Down

0 comments on commit 13a15d8

Please sign in to comment.