score:5

Accepted answer

as far as i have tried, the image resize module won't work with boilerplate of nextjs and the styles itself won't get register while displaying the contents back.you need to either eject the boilerplate or use webpack.

i prefer you to use suneditor for react rich text editor which works extremely well with nextjs. suneditor github link. you just need to import the stylesheet globally in your _document.js or _app.js .

you can see the demo here

score:0

to register a global style, you must put it in pages/_app.js (docs):

import '../../node_modules/react-quill/dist/quill.snow.css'

export default function myapp({ component, pageprops }) {
  return <component {...pageprops} />
}

there is an rfc to allow this css import on a per-page basis. and also an issue that also talks about this.


Related Query

More Query from same tag