I love how you've kept this setup very vanilla, it was useful to cross-reference my setup. I'm just leaving this as a piece of learning, and not really as a feature request.
One thing I've learnt is that JIT won't pick up my classes in WYSIWYG by default, it might be a interesting to add a basic src/ckeditor.css and then add this:
# tailwind.config.js
module.exports = {
content: [
"**/*.twig",
"src/ckeditor.css",
...
Or otherwise i'm interested to see how you approach this situation.
Comments
Comment #2
simeComment #3
opdaviesHi @sime.
Thanks for the suggestion, but what would you add to the src/ckeditor.css file to make it work with Tailwind?
If it's custom styling for that theme, people can add that themselves when they create their theme.
If it's something generic, it could be added to this starter kit, but I don't see how at the moment.
Comment #4
simeI wanted to use classes in CKEditor which were not being used in the theme. Tailwind never saw these classes and would not compile them. So I'm wondering how other people deal with this.
Comment #5
andreas schwarz commentedHello @sime,
One solution is to work with Storybook and pre-design and test the styles outside of Drupal.
So Tailwind can compile them and the Tailwind classes you want to make available to CKEditor are available.