sabbelasichon / typo3_encore

Use Webpack Encore within TYPO3
Other
108 stars 19 forks source link

Add RTE configuration example in README #146

Closed rintisch closed 2 years ago

rintisch commented 2 years ago

More by accident I realized that there is a solution for the generation of a CSS file for the RTE. This is imho totally worth to be described in the README. What do you think?

Something like

CSS for CKEditor

It is possible to configure encore so that you can use a CSS file for the CKEditor which is generated by webpack and even works with enabled versioning. Two steps are required to do so:

  1. Define an entrypoint for the RTE in your webpack.config.js, e.g.

    Encore
    .addStyleEntry('rte', './assets/rte.scss')
  2. Add in the CKEditor yaml configuration

editor:
  config:
    contentsCss: "typo3_encore:rte"
sabbelasichon commented 2 years ago

Yes. Could you create a Pull Request?