Skip to content

Commit

Permalink
Fixed #4317 - [Editor] - Tailwind theme is not working. Structure nee…
Browse files Browse the repository at this point in the history
…ds adjustments
  • Loading branch information
tugcekucukoglu committed Aug 22, 2023
1 parent d9b4cbf commit 106565f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/lib/editor/BaseEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import BaseComponent from 'primevue/basecomponent';
import { useStyle } from 'primevue/usestyle';
const styles = `
const quillStyles = `
/*!
* Quill Editor v1.3.3
* https://quilljs.com/
Expand Down Expand Up @@ -956,7 +956,7 @@ const classes = {
content: 'p-editor-content'
};
const { load: loadStyle } = useStyle(styles, { name: 'editor', manual: true });
const { load: loadStyle } = useStyle(quillStyles, { name: 'editor', manual: true });
export default {
name: 'BaseEditor',
Expand All @@ -969,14 +969,16 @@ export default {
editorStyle: null,
modules: null
},
css: {
classes,
loadStyle
},
provide() {
return {
$parentInstance: this
};
},
beforeMount() {
loadStyle();
},
css: {
classes
}
};
</script>

0 comments on commit 106565f

Please sign in to comment.