Fixed #4317 - [Editor] - Tailwind theme is not working. Structure needs adjustments

pull/4343/head
Tuğçe Küçükoğlu 2023-08-22 16:48:00 +03:00
parent d9b4cbfecc
commit 106565fd85
1 changed files with 8 additions and 6 deletions

View File

@ -2,7 +2,7 @@
import BaseComponent from 'primevue/basecomponent'; import BaseComponent from 'primevue/basecomponent';
import { useStyle } from 'primevue/usestyle'; import { useStyle } from 'primevue/usestyle';
const styles = ` const quillStyles = `
/*! /*!
* Quill Editor v1.3.3 * Quill Editor v1.3.3
* https://quilljs.com/ * https://quilljs.com/
@ -956,7 +956,7 @@ const classes = {
content: 'p-editor-content' content: 'p-editor-content'
}; };
const { load: loadStyle } = useStyle(styles, { name: 'editor', manual: true }); const { load: loadStyle } = useStyle(quillStyles, { name: 'editor', manual: true });
export default { export default {
name: 'BaseEditor', name: 'BaseEditor',
@ -969,14 +969,16 @@ export default {
editorStyle: null, editorStyle: null,
modules: null modules: null
}, },
css: {
classes,
loadStyle
},
provide() { provide() {
return { return {
$parentInstance: this $parentInstance: this
}; };
},
beforeMount() {
loadStyle();
},
css: {
classes
} }
}; };
</script> </script>