Closed HelainaCurtis closed 4 months ago
Hi! The new installation methods expect that the CSS will be loaded separately. The screenshot suggests that the stylesheets were not loaded.
There may be two different solutions here:
node_modules/ckeditor5/dist/ckeditor.css
Please investigate, and pick the option that fits your setup. The solution might also depend on your Angular setup or version. Let me know if it helped.
Thanks so much for the quick response! I tried the 2nd solution but it did not work.
I tried the 1st solution, installed css-loader and style-loader. Our project is angular 17, and does not use a webpack.config.js. So I tried to use the inline style specified here: https://webpack.js.org/concepts/loaders/#inline
Thus, adding this in the .ts file where theckeditor.css import is suggested
import '!style-loader!css-loader!/home/helaina/pathToRepo/App/client/node_modules/ckeditor5/dist/ckeditor5.css';
I still need to change the path to not use my own computers path but this made the ckeditors load correctly at least:
Got the path working, Thanks for the directions and help
Reproduction steps
Current behavior
This is what occurs on one of our ckeditor fields: All the toolbar pieces work on the text, but the box around the text is invisible and the toolbar is stacking very oddly. There is also always a Rich Text Editor text above the toolbar
Expected behavior
Expected our old functionality:
Definition of Done
Relevant debug data
Other details
We use custom schema on our html so you will see other elements in the html that are unfamiliar. We use ngrx and I've left the references, but none of the functionality is the issue, code is included and left as is for transparency.
User agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0